cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject git commit: CLOUDSTACK-7670: Avoid color output when non-interactive
Date Fri, 03 Oct 2014 11:11:54 GMT
Repository: cloudstack-cloudmonkey
Updated Branches:
  refs/heads/master 6153b8f86 -> b4bf97c38


CLOUDSTACK-7670: Avoid color output when non-interactive

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>


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 <rohit.yadav@shapeblue.com>
Authored: Fri Oct 3 13:10:55 2014 +0200
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
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)))


Mime
View raw message