Commit 030b218a authored by Iustin Pop's avatar Iustin Pop
Browse files

Fix backend.OSEnvironment be/hv parameters

Commit 67fc3042

 added some more
variables to be exported to OSEnvironment, but it has two bugs:
  - wrong variable name (env vs. result)
  - in OSEnvironment we don't have the automatic converstion to strings
    that we do in hooks, so we must manually enforce this

With this patch instance creations work again.
Signed-off-by: default avatarIustin Pop <>
Reviewed-by: default avatarGuido Trotter <>
parent 25e39bfa
......@@ -1692,7 +1692,7 @@ def OSEnvironment(instance, debug=0):
for source, kind in [(instance.beparams, "BE"), (instance.hvparams, "HV")]:
for key, value in source.items():
env["INSTANCE_%s_%s" % (kind, key)] = value
result["INSTANCE_%s_%s" % (kind, key)] = str(value)
return result
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment