From d0e853e9d150ebba179d3ae714e497472aca368d Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Mon, 2 Sep 2024 15:19:51 +0200 Subject: repo: remove --center legacy option, never used, remove it --- cli/objects/repo.py | 12 ------------ 1 file changed, 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) -- cgit v1.2.3-18-g5258