Improve jenkins_server to not error when no command is supplied
Bug #1385192 reported by
Caio Begotti
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Capomastro |
Triaged
|
Low
|
Unassigned |
Bug Description
def handle(self, command, *args, **options):
Requires a command, and errors if there isn't one...this should just use *args and verify the number of args.
To post a comment you must log in.
this is in jenkins/ management/ commands/ jenkins_ server. py.
It should be easyish to just remove command and instead check the args tuple for the required command. This is an extension of a django management command, which I'm not too familiar with, so I won't speculate as to what else is needed.
Triaging to future since it hasn't been an issue, I think.