From fb87f4bd55368be9121b32eaa611e4c0dfe32a15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Ole=C5=9B?= Date: Thu, 28 Jan 2016 18:05:14 +0100 Subject: [PATCH] Use yaml to load data in solar create It uses the same idea like in 3ae29a91cefed793f79ff8479ca3eff845223615 Related-bug: #1537176 Related-bug: #1533609 Change-Id: Id3017775926bbc0e8fe6fd2254a4f8f3a58a22c3 --- solar/cli/resource.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solar/cli/resource.py b/solar/cli/resource.py index 2100a1a9..824fc612 100644 --- a/solar/cli/resource.py +++ b/solar/cli/resource.py @@ -87,7 +87,7 @@ def create(args, base_path, name): args_parsed.update(json.loads(arg)) except ValueError: k, v = arg.split('=') - args_parsed.update({k: v}) + args_parsed.update({k: yaml.safe_load(v)}) resources = cr.create(name, base_path, inputs=args_parsed) for res in resources: click.echo(res.color_repr())