summaryrefslogtreecommitdiffstats
path: root/cli/objects/repo.py
diff options
context:
space:
mode:
Diffstat (limited to 'cli/objects/repo.py')
-rw-r--r--cli/objects/repo.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/cli/objects/repo.py b/cli/objects/repo.py
index 4e20edd..1a521c8 100644
--- a/cli/objects/repo.py
+++ b/cli/objects/repo.py
@@ -27,17 +27,11 @@ class OgRepo():
nargs='?',
required=True,
help='name of the repository')
- parser.add_argument('--center',
- nargs='?',
- type=int,
- help='(Optional, Legacy) Center id serving this repository')
parsed_args = parser.parse_args(args)
payload = {
'addr': parsed_args.address,
'name': parsed_args.name,
}
- if parsed_args.center:
- payload['center']: parsed_args.center
rest.post('/repository/add', payload=payload)
@@ -57,18 +51,12 @@ class OgRepo():
nargs='?',
required=True,
help='name of the repository')
- parser.add_argument('--center',
- nargs='?',
- type=int,
- help='(Optional, Legacy) Center id serving this repository')
parsed_args = parser.parse_args(args)
payload = {
'id': parsed_args.id,
'addr': parsed_args.address,
'name': parsed_args.name,
}
- if parsed_args.center:
- payload['center']: parsed_args.center
rest.post('/repository/update', payload=payload)