Permalink
Browse files

non-backwards compatible change: terminate -> destroy

rational: inline with new Hub terminology
  • Loading branch information...
1 parent 20e90b7 commit 4c4a6e4190a68286b46215ece193210f374e856a @alonswartz alonswartz committed Jun 12, 2011
Showing with 4 additions and 4 deletions.
  1. +2 −2 cmd_terminate.py → cmd_destroy.py
  2. +2 −2 hub/servers.py
@@ -10,7 +10,7 @@
# option) any later version.
#
"""
-Terminate a cloud server
+Destroy a cloud server
Arguments:
@@ -63,7 +63,7 @@ def main():
try:
server = hub.servers.get(instance_id)[0]
- server.terminate()
+ server.destroy()
except HubAPIError, e:
fatal(e.description)
View
@@ -39,8 +39,8 @@ def reboot(self):
r = self.hubobj.api('PUT', 'amazon/instance/%s/reboot/' % self.instanceid)
self._parse_response(r)
- def terminate(self):
- r = self.hubobj.api('PUT', 'amazon/instance/%s/terminate/' % self.instanceid)
+ def destroy(self):
+ r = self.hubobj.api('PUT', 'amazon/instance/%s/destroy/' % self.instanceid)
self._parse_response(r)
def unregister(self):

0 comments on commit 4c4a6e4

Please sign in to comment.