diff --git a/lib/setupmanagers/qemuhck/qemu_machine.rb b/lib/setupmanagers/qemuhck/qemu_machine.rb index 2462798c..710e6cb4 100644 --- a/lib/setupmanagers/qemuhck/qemu_machine.rb +++ b/lib/setupmanagers/qemuhck/qemu_machine.rb @@ -300,7 +300,8 @@ def apply_state(name, state) when Hash var_value.merge! value when Array - var_value << value unless var_value.include? value + var_value |= value + instance_variable_set var, var_value else raise(QemuHCKError, "Variable #{var} has unsupported type") end