mirror of https://git.48k.eu/ogcli/
rename argument of 'restore' command to 'restore_obj'
The argument was called 'send_obj' probably due to copypaste. The rename aims to provide a better name for the command.master
parent
b242ee9f6e
commit
9a11fd8346
|
@ -149,7 +149,7 @@ class OgCLI():
|
||||||
def restore(self, args):
|
def restore(self, args):
|
||||||
choices = ['image']
|
choices = ['image']
|
||||||
parser = argparse.ArgumentParser(prog='ogcli restore')
|
parser = argparse.ArgumentParser(prog='ogcli restore')
|
||||||
parser.add_argument('send_obj', choices=choices)
|
parser.add_argument('restore_obj', choices=choices)
|
||||||
|
|
||||||
if not args:
|
if not args:
|
||||||
print('Missing restore subcommand', file=sys.stderr)
|
print('Missing restore subcommand', file=sys.stderr)
|
||||||
|
@ -157,7 +157,7 @@ class OgCLI():
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
parsed_args = parser.parse_args([args[0]])
|
parsed_args = parser.parse_args([args[0]])
|
||||||
if parsed_args.send_obj == 'image':
|
if parsed_args.restore_obj == 'image':
|
||||||
OgImage.restore_image(self.rest, args[1:])
|
OgImage.restore_image(self.rest, args[1:])
|
||||||
|
|
||||||
def create(self, args):
|
def create(self, args):
|
||||||
|
|
Loading…
Reference in New Issue