diff options
author | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-02-29 11:26:10 +0100 |
---|---|---|
committer | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-02-29 11:26:10 +0100 |
commit | 48f596436c06ddb36329ec7422259dbbb5fb27bc (patch) | |
tree | 63202e10fa63ebb506697384b1f3d13340757a06 /cli/objects/repo.py | |
parent | 9be4de87b7ba14adc6754f408d855b960ffeca25 (diff) |
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.
Diffstat (limited to 'cli/objects/repo.py')
-rw-r--r-- | cli/objects/repo.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/cli/objects/repo.py b/cli/objects/repo.py index c287926..a85f7a3 100644 --- a/cli/objects/repo.py +++ b/cli/objects/repo.py @@ -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) |