s/cleanup/volume. volume commands will need their own ns in the long run
This commit is contained in:
@@ -599,10 +599,10 @@ class LogCommands(object):
|
|||||||
print re.sub('#012', "\n", "\n".join(lines))
|
print re.sub('#012', "\n", "\n".join(lines))
|
||||||
|
|
||||||
|
|
||||||
class CleanupCommands(object):
|
class VolumeCommands(object):
|
||||||
"""Methods for dealing with a cloud in an odd state"""
|
"""Methods for dealing with a cloud in an odd state"""
|
||||||
|
|
||||||
def delete_volume(self, volume_id):
|
def delete(self, volume_id):
|
||||||
"""Delete a volume, bypassing the check that it
|
"""Delete a volume, bypassing the check that it
|
||||||
must be available.
|
must be available.
|
||||||
args: volume_id_id"""
|
args: volume_id_id"""
|
||||||
@@ -619,7 +619,7 @@ class CleanupCommands(object):
|
|||||||
{"method": "delete_volume",
|
{"method": "delete_volume",
|
||||||
"args": {"volume_id": volume['id']}})
|
"args": {"volume_id": volume['id']}})
|
||||||
|
|
||||||
def reattach_volume(self, volume_id):
|
def reattach(self, volume_id):
|
||||||
"""Re-attach a volume that has previously been attached
|
"""Re-attach a volume that has previously been attached
|
||||||
to an instance. Typically called after a compute host
|
to an instance. Typically called after a compute host
|
||||||
has been rebooted.
|
has been rebooted.
|
||||||
@@ -650,7 +650,7 @@ CATEGORIES = [
|
|||||||
('host', HostCommands),
|
('host', HostCommands),
|
||||||
('service', ServiceCommands),
|
('service', ServiceCommands),
|
||||||
('log', LogCommands),
|
('log', LogCommands),
|
||||||
('cleanup', CleanupCommands)]
|
('volume', VolumeCommands)]
|
||||||
|
|
||||||
|
|
||||||
def lazy_match(name, key_value_tuples):
|
def lazy_match(name, key_value_tuples):
|
||||||
|
|||||||
Reference in New Issue
Block a user