If no downscript is assigned, add 'downscript=no' to avoid error:

/etc/qemu-ifdown: could not launch network script

Signed-off-by: Yolkfull Chow <yz...@redhat.com>
---
 client/tests/kvm/kvm_vm.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/client/tests/kvm/kvm_vm.py b/client/tests/kvm/kvm_vm.py
index a8d96ca..0b8efbc 100755
--- a/client/tests/kvm/kvm_vm.py
+++ b/client/tests/kvm/kvm_vm.py
@@ -252,6 +252,8 @@ class VM:
                 if script_path:
                     script_path = kvm_utils.get_path(root_dir, script_path)
                     qemu_cmd += ",downscript=%s" % script_path
+                else:
+                    qemu_cmd += ",downscript=no"
             # Proceed to next NIC
             vlan += 1
 
-- 
1.6.2.5

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to