CLOUDSTACK-9041: Modifying template creation from snapshot function in base.py

This commit is contained in:
Priti Sarap 2015-11-06 14:36:32 +05:30
parent 3ded3e9000
commit bbe0fc4be9
1 changed files with 3 additions and 0 deletions

View File

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