Commit a79f0a58 authored by Christos Stavrakakis's avatar Christos Stavrakakis

cyclades: Fix inheritance of RemoveCommand

Make RemoveCommand inherit from SynnefoCommand. Also, add options of
remove commands to command specific options.
parent 9ff6d921
......@@ -44,7 +44,7 @@ class Command(RemoveCommand):
help = "Remove a pool."
args = "<pool ID>"
output_transaction = True
option_list = RemoveCommand.option_list + (
command_option_list = RemoveCommand.command_option_list + (
make_option("--type", dest="type",
choices=POOL_CHOICES,
help="Type of pool"
......
......@@ -40,7 +40,7 @@ class Command(RemoveCommand):
can_import_settings = True
args = "<Port ID> [<Port ID> ...]"
help = "Remove a port from the Database and from the VMs attached to"
option_list = RemoveCommand.option_list + (
command_option_list = RemoveCommand.command_option_list + (
make_option(
"--wait",
dest="wait",
......
......@@ -46,7 +46,7 @@ class Command(RemoveCommand):
args = "<Server ID> [<Server ID> ...]"
help = "Remove a server by deleting the instance from the Ganeti backend."
option_list = RemoveCommand.option_list + (
command_option_list = RemoveCommand.command_option_list + (
make_option(
'--wait',
dest='wait',
......
......@@ -375,9 +375,10 @@ class ListCommand(SynnefoCommand):
utils.pprint_table(self.stdout, table, headers)
class RemoveCommand(BaseCommand):
class RemoveCommand(SynnefoCommand):
help = "Generic remove command"
option_list = BaseCommand.option_list + (
command_option_list = (
make_option(
"-f", "--force",
dest="force",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment