Explorar el Código

Fix syntax issue when modifying vpc attributes

Nuwan Goonasekera hace 6 años
padre
commit
c496b1192e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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",