Repository: cloudstack-cloudmonkey Updated Branches: refs/heads/master 6153b8f86 -> b4bf97c38
CLOUDSTACK-7670: Avoid color output when non-interactive Signed-off-by: Rohit Yadav <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/commit/b4bf97c3 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/tree/b4bf97c3 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/diff/b4bf97c3 Branch: refs/heads/master Commit: b4bf97c38dbf1c7a7389938b68547d93e9c3684e Parents: 6153b8f Author: Rohit Yadav <[email protected]> Authored: Fri Oct 3 13:10:55 2014 +0200 Committer: Rohit Yadav <[email protected]> Committed: Fri Oct 3 13:10:55 2014 +0200 ---------------------------------------------------------------------- cloudmonkey/cloudmonkey.py | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/blob/b4bf97c3/cloudmonkey/cloudmonkey.py ---------------------------------------------------------------------- diff --git a/cloudmonkey/cloudmonkey.py b/cloudmonkey/cloudmonkey.py index 549d653..3e67f5d 100644 --- a/cloudmonkey/cloudmonkey.py +++ b/cloudmonkey/cloudmonkey.py @@ -590,6 +590,7 @@ def main(): shell.set_attr("display", args.displayType) if len(args.commands) > 0: + shell.set_attr("color", "false") shell.onecmd(" ".join(map(lambda x: x.replace("\\ ", " ") .replace(" ", "\\ "), args.commands)))
