summaryrefslogtreecommitdiffstats
path: root/cli/cli.py
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2024-01-02 13:38:36 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2024-01-02 13:38:36 +0100
commit76b4492fe65199c974b35c90b577c9cf977cf78d (patch)
tree759c778fa11f119e5fa5154e78e3e1878e488b43 /cli/cli.py
parent717a1021d30069bb1fa35df56a0ba61062fea84f (diff)
cli: remove 'list server'
list servers already provides the same.
Diffstat (limited to 'cli/cli.py')
-rw-r--r--cli/cli.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/cli/cli.py b/cli/cli.py
index 1a31d61..157ea00 100644
--- a/cli/cli.py
+++ b/cli/cli.py
@@ -72,8 +72,7 @@ class OgCLI():
def list(self, args):
choices = ['clients', 'scopes', 'modes', 'hardware',
- 'client', 'images', 'disks', 'server',
- 'servers', 'repos']
+ 'client', 'images', 'disks', 'servers', 'repos']
parser = argparse.ArgumentParser(prog='ogcli list')
parser.add_argument('item', choices=choices)
@@ -99,7 +98,7 @@ class OgCLI():
OgDisk.list_disks(self.rest, args[1:])
elif parsed_args.item == 'repos':
OgRepo.list_repos(self.rest)
- elif parsed_args.item in ['server', 'servers']:
+ elif parsed_args.item == 'servers':
OgServer.list_servers(self.rest)
def set(self, args):