From 76b4492fe65199c974b35c90b577c9cf977cf78d Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Tue, 2 Jan 2024 13:38:36 +0100 Subject: cli: remove 'list server' list servers already provides the same. --- cli/cli.py | 5 ++--- 1 file 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): -- cgit v1.2.3-18-g5258