Permalink
Browse files

Fixed bug when we specify an unknown network name

  • Loading branch information...
1 parent 0dbf786 commit c073146547579abdbd98c7681b8ee672040aa329 PiWhy committed Apr 13, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 examples/vmcreate.py
View
@@ -184,8 +184,8 @@ def create_nic(client, target, nic):
if network.name == nic["network_name"]:
net = network
break
- else:
- continue
+ else:
+ return None
# Success! Create a nic attached to this network
backing = client.create("VirtualEthernetCardNetworkBackingInfo")

0 comments on commit c073146

Please sign in to comment.