зеркало из https://github.com/mozilla/stoneridge.git
Add appropriate defaults for netconfigs and operating systems
Code expects it to be a list, make sure it's a list, not None
This commit is contained in:
Родитель
374d1b6294
Коммит
c35cb8d385
|
@ -343,10 +343,10 @@ def main():
|
|||
parser.add_argument('--srid', dest='srid', required=True)
|
||||
for ops in stoneridge.OPERATING_SYSTEMS:
|
||||
parser.add_argument('--%s' % (ops,), dest='operating_systems',
|
||||
action='append_const', const=ops)
|
||||
action='append_const', const=ops, default=[])
|
||||
for nc in stoneridge.NETCONFIGS:
|
||||
parser.add_argument('--%s' % (nc,), dest='netconfigs',
|
||||
action='append_const', const=nc)
|
||||
action='append_const', const=nc, default=[])
|
||||
parser.add_argument('--attempt', dest='attempt', required=True, type=int)
|
||||
parser.add_argument('--ldap', dest='ldap', default='')
|
||||
parser.add_argument('--sha', dest='sha', default='')
|
||||
|
|
|
@ -55,10 +55,10 @@ def main():
|
|||
parser.add_argument('--sha', dest='sha', default='')
|
||||
for nc in stoneridge.NETCONFIGS:
|
||||
parser.add_argument('--%s' % (nc,), dest='netconfigs',
|
||||
action='append_const', const=nc)
|
||||
action='append_const', const=nc, default=[])
|
||||
for ops in stoneridge.OPERATING_SYSTEMS:
|
||||
parser.add_argument('--%s' % (nc,), dest='operating_systems',
|
||||
action='append_const', const=ops)
|
||||
action='append_const', const=ops, default=[])
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче