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

Merge pull request #1 from Dyex719/patch-1

Zone parameter in Subnet create is compulsory
Aditya Addepalli 8 лет назад
Родитель
Сommit
0d5350f92e
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      cloudbridge/cloud/interfaces/services.py

+ 2 - 2
cloudbridge/cloud/interfaces/services.py

@@ -740,7 +740,7 @@ class SubnetService(PageableObjectMixin, CloudService):
         pass
 
     @abstractmethod
-    def create(self, name, network_id, cidr_block, zone=None):
+    def create(self, name, network_id, cidr_block, zone=zone):
         """
         Create a new subnet within the supplied network.
 
@@ -756,7 +756,7 @@ class SubnetService(PageableObjectMixin, CloudService):
                            subnet.
 
         :type zone: ``str``
-        :param zone: An optional placement zone for the subnet. Some providers
+        :param zone: A placement zone for the subnet. Some providers
                      may not support this, in which case the value is ignored.
 
         :rtype: ``object`` of :class:`.Subnet`