Minor fixes
authorJohn Giannelos <johngiannelos@gmail.com>
Wed, 2 May 2012 09:22:54 +0000 (12:22 +0300)
committerJohn Giannelos <johngiannelos@gmail.com>
Wed, 2 May 2012 09:22:54 +0000 (12:22 +0300)
snfOCCI/compute.py

index 2810594..5aee3f8 100644 (file)
@@ -16,10 +16,10 @@ class MyBackend(KindBackend, ActionBackend):
     # Updating and Replacing compute instances not supported by Cyclades
 
     def update(self, old, new, extras):
-        raise AttributeError("This action is currently no applicable.")
+        raise HTTPError(501, "Update is currently no applicable")
 
     def replace(self, old, new, extras):
-        raise AttributeError("This action is currently no applicable.")
+        raise HTTPError(501, "Replace is currently no applicable")
 
 
 class ComputeBackend(MyBackend):