CLOUDSTACK-9354 - Fixing an issue in Marvin around creating a template from a snapshot (if âis publicâ is not provided, there was a problem)
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/ba9a61a3 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/ba9a61a3 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/ba9a61a3 Branch: refs/heads/master Commit: ba9a61a30291effefc3857789096f04ebd5e5ad4 Parents: 3393555 Author: Mike Tutkowski <[email protected]> Authored: Mon Apr 18 11:56:08 2016 -0600 Committer: Mike Tutkowski <[email protected]> Committed: Tue Apr 19 14:13:24 2016 -0600 ---------------------------------------------------------------------- tools/marvin/marvin/lib/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ba9a61a3/tools/marvin/marvin/lib/base.py ---------------------------------------------------------------------- diff --git a/tools/marvin/marvin/lib/base.py b/tools/marvin/marvin/lib/base.py index e2f4a2c..ff45139 100755 --- a/tools/marvin/marvin/lib/base.py +++ b/tools/marvin/marvin/lib/base.py @@ -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"]
