From 9898522a00c9d436545183b443e8c2abae0d421e Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Wed, 22 Apr 2015 23:12:37 -0400 Subject: [PATCH] now all cli use display.error --- v2/bin/ansible-playbook | 4 ++-- v2/bin/ansible-vault | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/v2/bin/ansible-playbook b/v2/bin/ansible-playbook index a182f629aa..d9247fef1c 100755 --- a/v2/bin/ansible-playbook +++ b/v2/bin/ansible-playbook @@ -191,8 +191,8 @@ if __name__ == "__main__": try: sys.exit(main(display, sys.argv[1:])) except AnsibleError as e: - display.display("[ERROR]: %s" % e, color='red', stderr=True) + display.error(str(e)) sys.exit(1) except KeyboardInterrupt: - display.display("[ERROR]: interrupted", color='red', stderr=True) + display.error("interrupted") sys.exit(1) diff --git a/v2/bin/ansible-vault b/v2/bin/ansible-vault index 506402ee15..638d80ba9e 100755 --- a/v2/bin/ansible-vault +++ b/v2/bin/ansible-vault @@ -186,8 +186,8 @@ if __name__ == "__main__": (options, args) = cli.parse() sys.exit(cli.run(options, args)) except AnsibleError as e: - display.display("[ERROR]: %s" % e, color='red', stderr=True) + display.error(str(e)) sys.exit(1) except KeyboardInterrupt: - display.display("[ERROR]: interrupted", color='red', stderr=True) + display.error("interrupted") sys.exit(1)