Skip to content

Commit

Permalink
Merge pull request #507 from grycap/devel
Browse files Browse the repository at this point in the history
Implements #506
  • Loading branch information
micafer authored Dec 4, 2017
2 parents 32d4811 + df44f65 commit 3d09401
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions IM/connectors/OpenNebula.py
Original file line number Diff line number Diff line change
Expand Up @@ -933,19 +933,16 @@ def get_networks_template(self, radl, sgs, auth_data):
for public in [True, False]:
i = 0
while system.getValue("net_interface." + str(i) + ".connection"):
network = system.getValue(
"net_interface." + str(i) + ".connection")
network = system.getValue("net_interface." + str(i) + ".connection")
fixed_ip = system.getValue("net_interface." + str(i) + ".ip")

# get the one network info
if nets[network]:
if network in nets and nets[network]:
(net_name, net_id, is_public) = nets[network]
radl.get_network_by_id(network).setValue('provider_id', str(net_name))
else:
self.log_error(
"No ONE network found for network: " + network)
raise Exception(
"No ONE network found for network: " + network)
self.log_error("No ONE network found for network: " + network)
raise Exception("No ONE network found for network: " + network)

if public == is_public:
if net_id is not None:
Expand Down

0 comments on commit 3d09401

Please sign in to comment.