diff --git a/lib/hypervisor/hv_kvm.py b/lib/hypervisor/hv_kvm.py index 76b4a1a60757d851a3fa8b1399a1d868e065fc2c..fdd117ab37399489603f7475a3134071d95254e8 100644 --- a/lib/hypervisor/hv_kvm.py +++ b/lib/hypervisor/hv_kvm.py @@ -287,7 +287,8 @@ class KVMHypervisor(hv_base.BaseHypervisor): if nic.nicparams[constants.NIC_MODE] == constants.NIC_MODE_BRIDGED: script.write("export BRIDGE=%s\n" % nic.nicparams[constants.NIC_LINK]) script.write("export INTERFACE=$1\n") - script.write("export TAGS=\"%s\"\n" % " ".join(instance.tags)) + if instance.tags: + script.write("export TAGS=\"%s\"\n" % " ".join(instance.tags)) # TODO: make this configurable at ./configure time script.write("if [ -x '%s' ]; then\n" % self._KVM_NETWORK_SCRIPT) script.write(" # Execute the user-specific vif file\n")