set network_config.public_ips attribute

This commit is contained in:
Richard Lander 2014-12-15 16:26:33 -05:00 committed by Matt Clay
parent 1f51a5effd
commit f5532b7904

View file

@ -294,6 +294,7 @@ def create_virtual_machine(module, azure):
network_config = ConfigurationSetInputEndpoints() network_config = ConfigurationSetInputEndpoints()
network_config.configuration_set_type = 'NetworkConfiguration' network_config.configuration_set_type = 'NetworkConfiguration'
network_config.subnet_names = [] network_config.subnet_names = []
network_config.public_ips = None
for port in endpoints: for port in endpoints:
network_config.input_endpoints.append(ConfigurationSetInputEndpoint(name='TCP-%s' % port, network_config.input_endpoints.append(ConfigurationSetInputEndpoint(name='TCP-%s' % port,
protocol='TCP', protocol='TCP',