mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-7506: Fix base library to read hypevisor value from dictionary as opposed to only from function parameter
Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
This commit is contained in:
parent
bbb3ea5983
commit
d08d71427b
|
|
@ -1085,7 +1085,10 @@ class Template:
|
|||
cmd.displaytext = services["displaytext"]
|
||||
cmd.name = "-".join([services["name"], random_gen()])
|
||||
cmd.format = services["format"]
|
||||
cmd.hypervisor = hypervisor
|
||||
if hypervisor:
|
||||
cmd.hypervisor = hypervisor
|
||||
elif "hypervisor" in services:
|
||||
cmd.hypervisor = services["hypervisor"]
|
||||
|
||||
if "ostypeid" in services:
|
||||
cmd.ostypeid = services["ostypeid"]
|
||||
|
|
|
|||
Loading…
Reference in New Issue