mirror of https://github.com/apache/cloudstack.git
Merge pull request #1041 from pritisarap12/CLOUDSTACK-9041-Modifying-template-creation-from-snapshot-function-in-base.py
CLOUDSTACK-9041: Modifying template creation from snapshot function In create_from_snapshot function of Template class there is no parameter to accept if the template is public hence default it is creating private templates Hence adding this parameter. * pr/1041: CLOUDSTACK-9041: Modifying template creation from snapshot function in base.py Signed-off-by: Remi Bergsma <github@remi.nl>
This commit is contained in:
commit
ad420bb1df
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue