Bug 12817

Summary: builddelete.py requires explicit 'add_arguments'
Product: [Build System, Metadata & Runtime] Toaster Reporter: David Reyna <david.reyna>
Component: toasterAssignee: David Reyna <david.reyna>
Status: RESOLVED FIXED QA Contact: Toaster default assignee <toaster>
Severity: normal    
Priority: Medium CC: jessica.zhang, stanciux.mihail
Version: unspecified   
Target Milestone: 2.6 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

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