Skip to content
Permalink
Browse files

Replace prin with yaml dump

  • Loading branch information...
mneagul committed Feb 13, 2014
1 parent 4f74198 commit c270f243c2ec24dbb8d6a8bafa1ef490874c1560
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/sct/cli.py
@@ -64,7 +64,8 @@ def __args_wrapper(args):
func = getattr(outer_obj, item)
func_is_read_only = getattr(func, "read_only", False)

print func(**passed_args)
result = func(**passed_args)
yaml.dump(result, sys.stdout, default_flow_style=False)
cfg.store_config(args.config_file)

return __args_wrapper

0 comments on commit c270f24

Please sign in to comment.
You can’t perform that action at this time.