mirror of https://git.48k.eu/ogcli/
remove duplicated parse_args in repo.py and server.py
Remove the line 'parsed_args = parser.parse_args(args)' parsing the command line arguments a second time when it is not needed.master
parent
9be4de87b7
commit
48f596436c
|
@ -88,6 +88,5 @@ class OgRepo():
|
|||
print('No valid clients specified.')
|
||||
return
|
||||
|
||||
parsed_args = parser.parse_args(args)
|
||||
payload = {'id': parsed_args.id, 'clients': list(ips)}
|
||||
rest.post('/client/repo', payload=payload)
|
||||
|
|
|
@ -74,6 +74,5 @@ class OgServer():
|
|||
print('No clients specified.')
|
||||
return
|
||||
|
||||
parsed_args = parser.parse_args(args)
|
||||
payload = {'id': parsed_args.id, 'clients': list(ips)}
|
||||
rest.post('/client/server', payload=payload)
|
||||
|
|
Loading…
Reference in New Issue