diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-09-02 15:19:51 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-09-02 15:19:51 +0200 |
commit | d0e853e9d150ebba179d3ae714e497472aca368d (patch) | |
tree | 4bd46534970b5b1b0bc8e6a27870cfe1d164d889 /cli/objects/repo.py | |
parent | 784b713c07f2b42e4bbc9b51ea78c163ae738284 (diff) |
repo: remove --centerv0.3.3-11
legacy option, never used, remove it
Diffstat (limited to 'cli/objects/repo.py')
-rw-r--r-- | cli/objects/repo.py | 12 |
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) |