CLOUDSTACK-9354 - Fixing an issue in Marvin around creating a template from a snapshot (if “is public” is not provided, there was a problem)

This commit is contained in:
Mike Tutkowski 2016-04-18 11:56:08 -06:00
parent 339355594c
commit ba9a61a302
1 changed files with 2 additions and 2 deletions

View File

@ -1201,8 +1201,8 @@ class Template:
random_gen()
]) if random_name else services["name"]
if services["ispublic"]:
cmd.ispublic = services["ispublic"]
if "ispublic" in services:
cmd.ispublic = services["ispublic"]
if "ostypeid" in services:
cmd.ostypeid = services["ostypeid"]