From 9118164c6da1f044f467afe4161727e86a001f0b Mon Sep 17 00:00:00 2001 From: Andrei Stepanov Date: Jun 27 2018 12:11:48 +0000 Subject: Fix fmf_get invocation in standard-inventory-qcow2 provision script. In fmf_get(path, default=None) `default` should have type str. Fix invocation. Signed-off-by: Andrei Stepanov --- diff --git a/inventory/standard-inventory-qcow2 b/inventory/standard-inventory-qcow2 index 289a4c4..06ea671 100755 --- a/inventory/standard-inventory-qcow2 +++ b/inventory/standard-inventory-qcow2 @@ -221,7 +221,7 @@ def start_qemu(image, cloudinit, artifacts, portrange=(2222, 5555)): # Log from qemu itself. log_qemu = log_guest.replace(".guest.log", ".qemu.log") # Parameters from FMF: - param_m = fmf_get(['qemu', 'm'], 1024) + param_m = fmf_get(['qemu', 'm'], "1024") param_net_nic_model = fmf_get(['qemu', 'net_nic', 'model'], 'virtio') # Use -cpu host and -smp by default. # virtio-rng-pci: https://wiki.qemu.org/Features/VirtIORNG