diff options
Diffstat (limited to 'cli/cli.py')
-rw-r--r-- | cli/cli.py | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -125,3 +125,12 @@ class OgCLI(): if parsed_args.setup_obj == 'disk': OgDisk.setup_disk(self.rest, args[1:]) + + def update(self, args): + choices = ['image'] + parser = argparse.ArgumentParser(prog='ogcli update') + parser.add_argument('update_obj', choices=choices) + parsed_args = parser.parse_args([args[0]]) + + if parsed_args.update_obj == 'image': + OgImage.update_image(self.rest, args[1:]) |