Bug 12817 - builddelete.py requires explicit 'add_arguments'
Summary: builddelete.py requires explicit 'add_arguments'
Status: RESOLVED FIXED
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.6 M3
Assignee: David Reyna
QA Contact: Toaster default assignee
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2018-06-28 00:26 UTC by David Reyna
Modified: 2018-08-26 05:54 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Reyna 2018-06-28 00:26:55 UTC
Django now requires that commands have an explicit 'add_arguments' method.

The command "builddelete.py" is affected and needs updating.

Proposed fix:
    def add_arguments(self, parser):
        parser.add_argument('buildids', metavar='N', type=int, nargs='+',
                    help="Build ID's to delete")

... and ...

    def handle(self, *args, **options):
        for bid in options['buildids']:
Comment 1 David Reyna 2018-08-26 05:54:23 UTC
commit 08fbdc02e32d715ae94e3b9603fb3ec8351c8fd3