summaryrefslogtreecommitdiffstats
path: root/cli/cli.py
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2024-08-28 15:43:46 +0200
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-09-02 14:31:06 +0200
commitaec6772edcc65d2a1966719f499d2427d9973376 (patch)
tree94670245c2717b3ef2f8ad9fa33dc6054e064cd7 /cli/cli.py
parent28ec68df42879a847eab6d314bfbf3a0157d9f45 (diff)
server: remove 'set server' command
server IP is now inferred from what it is reachable, remove this command. this revisits a721957cc469 ('cli: add server commands')
Diffstat (limited to 'cli/cli.py')
-rw-r--r--cli/cli.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/cli/cli.py b/cli/cli.py
index 8e06c19..ed65a4f 100644
--- a/cli/cli.py
+++ b/cli/cli.py
@@ -109,7 +109,7 @@ class OgCLI():
OgLive.list_live(self.rest)
def set(self, args):
- choices = ['modes', 'mode', 'server', 'repo']
+ choices = ['modes', 'mode', 'repo']
parser = argparse.ArgumentParser(prog='ogcli set')
parser.add_argument('item', choices=choices)
@@ -123,8 +123,6 @@ class OgCLI():
OgModes.set_modes(self.rest, args[1:])
elif parsed_args.item == 'repo':
OgRepo.set_repo(self.rest, args[1:])
- elif parsed_args.item == 'server':
- OgServer.set_server(self.rest, args[1:])
def request(self, args):
choices = ['reboot', 'refresh', 'poweroff', 'wol', 'session']