Skip to content

Commit

Permalink
Allows empty NetVM for a vm
Browse files Browse the repository at this point in the history
  • Loading branch information
kushaldas committed Nov 19, 2018
1 parent b7f5f7f commit 1aad06a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ansible_module/qubesos.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,11 @@ def properties(self, vmname, prefs, vmtype, label, vmtemplate):
changed = True
values_changed.append("provides_network")
if "netvm" in prefs:
netvm = self.app.domains[prefs["netvm"]]
# To make sure that we allow VMs with netvm
if prefs["netvm"] == "":
netvm = ""
else:
netvm = self.app.domains[prefs["netvm"]]
if vm.netvm != netvm:
vm.netvm = netvm
changed = True
Expand Down

0 comments on commit 1aad06a

Please sign in to comment.