diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2023-11-30 21:47:16 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2023-11-30 22:03:51 +0100 |
commit | da8f8e8009741e92d5e5fd08b9a30bea96a385fb (patch) | |
tree | 052d2e6d8fee9670f3b5d79396a236c41f12cf7d /cli/cli.py | |
parent | 09cb99b057f26628320ecee789799adc04a0435c (diff) |
client: support for deleting clients
Delete a client with command:
$ ogcli delete client --ip 1.2.3.4
Diffstat (limited to 'cli/cli.py')
-rw-r--r-- | cli/cli.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -197,7 +197,7 @@ class OgCLI(): OgImage.update_image(self.rest, args[1:]) def delete(self, args): - choices = ['server', 'center', 'room'] + choices = ['server', 'center', 'room', 'client'] parser = argparse.ArgumentParser(prog='ogcli delete') parser.add_argument('delete_obj', choices=choices) @@ -213,6 +213,8 @@ class OgCLI(): OgCenter.delete_center(self.rest, args[1:]) elif parsed_args.delete_obj == 'room': OgRoom.delete_room(self.rest, args[1:]) + elif parsed_args.delete_obj == 'client': + OgClient.delete_client(self.rest, args[1:]) def add(self, args): choices = ['server', 'repo', 'center', 'room', 'client'] |