Explorar el Código

Merge pull request #236 from nuwang/enable_dns_hostnames

Enable dns hostnames
Enis Afgan hace 6 años
padre
commit
137039be3e
Se han modificado 2 ficheros con 7 adiciones y 5 borrados
  1. 5 5
      README.rst
  2. 2 0
      cloudbridge/providers/aws/services.py

+ 5 - 5
README.rst

@@ -22,19 +22,19 @@ Build Status Tests
    :target: http://cloudbridge.readthedocs.org/en/latest/?badge=latest
    :alt: Documentation Status
 
-.. |aws-py36| image:: https://travis-matrix-badges.herokuapp.com/repos/CloudVE/cloudbridge/branches/master/6
+.. |aws-py36| image:: https://travis-matrix-badges.herokuapp.com/repos/CloudVE/cloudbridge/branches/master/1
               :target: https://travis-ci.org/CloudVE/cloudbridge
 
-.. |azure-py36| image:: https://travis-matrix-badges.herokuapp.com/repos/CloudVE/cloudbridge/branches/master/7
+.. |azure-py36| image:: https://travis-matrix-badges.herokuapp.com/repos/CloudVE/cloudbridge/branches/master/2
                 :target: https://travis-ci.org/CloudVE/cloudbridge
 
-.. |gcp-py36| image:: https://travis-matrix-badges.herokuapp.com/repos/CloudVE/cloudbridge/branches/master/8
+.. |gcp-py36| image:: https://travis-matrix-badges.herokuapp.com/repos/CloudVE/cloudbridge/branches/master/3
               :target: https://travis-ci.org/CloudVE/cloudbridge
 
-.. |mock-py36| image:: https://travis-matrix-badges.herokuapp.com/repos/CloudVE/cloudbridge/branches/master/9
+.. |mock-py36| image:: https://travis-matrix-badges.herokuapp.com/repos/CloudVE/cloudbridge/branches/master/4
               :target: https://travis-ci.org/CloudVE/cloudbridge
 
-.. |os-py36| image:: https://travis-matrix-badges.herokuapp.com/repos/CloudVE/cloudbridge/branches/master/10
+.. |os-py36| image:: https://travis-matrix-badges.herokuapp.com/repos/CloudVE/cloudbridge/branches/master/5
              :target: https://travis-ci.org/CloudVE/cloudbridge
 
 +---------------------------+----------------+

+ 2 - 0
cloudbridge/providers/aws/services.py

@@ -965,6 +965,8 @@ class AWSNetworkService(BaseNetworkService):
         cb_net.wait_till_ready()
         if label:
             cb_net.label = label
+        self.provider.ec2_conn.meta.client.modify_vpc_attribute(
+            VpcId=cb_net.id, EnableDnsHostnames=True)
         return cb_net
 
     @dispatch(event="provider.networking.networks.delete",