Просмотр исходного кода

Added create and find abstract methods in InstanceService to revive previous build

jatin 9 лет назад
Родитель
Сommit
cb578541de
1 измененных файлов с 12 добавлено и 0 удалено
  1. 12 0
      cloudbridge/cloud/providers/azure/services.py

+ 12 - 0
cloudbridge/cloud/providers/azure/services.py

@@ -343,6 +343,14 @@ class AzureInstanceService(BaseInstanceService):
     def __init__(self, provider):
         super(AzureInstanceService, self).__init__(provider)
 
+    def create(self, name=None):
+        raise NotImplementedError("AzureInstanceService"
+                                  " not implemented this method")
+
+    def create_launch_config(self, name=None):
+        raise NotImplementedError("AzureInstanceService"
+                                  " not implemented this method")
+
     def list(self, limit=None, marker=None):
         """
         List all instances.
@@ -365,6 +373,10 @@ class AzureInstanceService(BaseInstanceService):
             log.exception(cloudError.message)
             return None
 
+    def find(self, name, limit=None, marker=None):
+        raise NotImplementedError("AzureInstanceService"
+                                  " not implemented this method")
+
 
 class AzureImageService(BaseImageService):
     def __init__(self, provider):