소스 검색

Merge pull request #1 from Dyex719/patch-1

Zone parameter in Subnet create is compulsory
Aditya Addepalli 8 년 전
부모
커밋
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`