Explorar o código

Fix syntax issue when modifying vpc attributes

Nuwan Goonasekera %!s(int64=6) %!d(string=hai) anos
pai
achega
c496b1192e
Modificáronse 1 ficheiros con 1 adicións e 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",