summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Coca <brian.coca+git@gmail.com>2016-07-07 10:41:59 -0400
committerBrian Coca <brian.coca+git@gmail.com>2016-07-07 10:43:19 -0400
commit11eefdc4866a120f2e4805115947de6345885194 (patch)
tree7a5b361bf5bd5dd787a1621b9bcace964fd315a2
parent5b9f79514079ea87d5d5cab7d61ff78efa1ba068 (diff)
downloadansible-11eefdc4866a120f2e4805115947de6345885194.tar.gz
correctly set become value in console
fixes #16614 (cherry picked from commit 906dc99c64772cda28ac747bd83b9cdf5d8984d7)
-rw-r--r--lib/ansible/cli/console.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/cli/console.py b/lib/ansible/cli/console.py
index ec35a8eff3..200611b5fa 100644
--- a/lib/ansible/cli/console.py
+++ b/lib/ansible/cli/console.py
@@ -301,7 +301,7 @@ class ConsoleCLI(CLI, cmd.Cmd):
def do_become(self, arg):
"""Toggle whether plays run with become"""
if arg:
- self.options.become_user = arg
+ self.options.become = C.mk_boolean(arg)
display.v("become changed to %s" % self.options.become)
self.set_prompt()
else: