Skip to content

Commit 3905403

Browse files
irwen-rescaleYingchao Huang
authored andcommitted
A list is not accepted. Json should start from {.
1 parent 140f37d commit 3905403

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

SoftLayer/CLI/virt/create.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def cli(env, **args):
304304
env.out(env.fmt(output))
305305
raise exceptions.CLIHalt(code=1)
306306
if args['output_json']:
307-
env.fout(json.dumps(result))
307+
env.fout(json.dumps({'statuses': result}))
308308
else:
309309
for instance_data in result:
310310
table = formatting.KeyValueTable(['name', 'value'])

0 commit comments

Comments
 (0)