Ver Fonte

Fix syntax issue when modifying vpc attributes

Nuwan Goonasekera há 6 anos atrás
pai
commit
c496b1192e
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      cloudbridge/providers/aws/services.py

+ 1 - 1
cloudbridge/providers/aws/services.py

@@ -966,7 +966,7 @@ class AWSNetworkService(BaseNetworkService):
         if label:
             cb_net.label = label
         self.provider.ec2_conn.meta.client.modify_vpc_attribute(
-            VpcId=cb_net.id, EnableDnsHostnames=True)
+            VpcId=cb_net.id, EnableDnsHostnames={'Value': True})
         return cb_net
 
     @dispatch(event="provider.networking.networks.delete",