summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnthony Young <sleepsonthefloor@gmail.com>2011-01-18 14:17:54 -0800
committerAnthony Young <sleepsonthefloor@gmail.com>2011-01-18 14:17:54 -0800
commita0af78323131b05a76eb7959df38f6a18e2b39ed (patch)
treee3b43077977f1306a6e5a7309493471804aed4d7
parent25f9c308714a41c93450ae4c5b14e90615d75425 (diff)
s/cleanup/volume. volume commands will need their own ns in the long run
-rwxr-xr-xbin/nova-manage8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/nova-manage b/bin/nova-manage
index f8523f18b..3e4f28fe5 100755
--- a/bin/nova-manage
+++ b/bin/nova-manage
@@ -599,10 +599,10 @@ class LogCommands(object):
print re.sub('#012', "\n", "\n".join(lines))
-class CleanupCommands(object):
+class VolumeCommands(object):
"""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
must be available.
args: volume_id_id"""
@@ -619,7 +619,7 @@ class CleanupCommands(object):
{"method": "delete_volume",
"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
to an instance. Typically called after a compute host
has been rebooted.
@@ -650,7 +650,7 @@ CATEGORIES = [
('host', HostCommands),
('service', ServiceCommands),
('log', LogCommands),
- ('cleanup', CleanupCommands)]
+ ('volume', VolumeCommands)]
def lazy_match(name, key_value_tuples):