summaryrefslogtreecommitdiff
path: root/lib/ansible
diff options
context:
space:
mode:
authorBrian Coca <brian.coca+git@gmail.com>2016-01-27 16:12:08 -0500
committerBrian Coca <brian.coca+git@gmail.com>2016-01-27 16:14:03 -0500
commit7c7e849a27e03adfddf90534fe6c10861366341c (patch)
treed6410f59ad8e6143edf56f0b45ca85d5f145c633 /lib/ansible
parent9eaa5fecc12a6da2b091859cd4ea6671850175d4 (diff)
downloadansible-7c7e849a27e03adfddf90534fe6c10861366341c.tar.gz
fixed issue with vars prompt warning causing error
sometimes display object is not magically available, use it explicitly, no need to be classmethod anymore fixes #14147
Diffstat (limited to 'lib/ansible')
-rw-r--r--lib/ansible/utils/display.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/ansible/utils/display.py b/lib/ansible/utils/display.py
index 9511231620..dc47a05ae4 100644
--- a/lib/ansible/utils/display.py
+++ b/lib/ansible/utils/display.py
@@ -273,7 +273,6 @@ class Display:
else:
return input(prompt_string)
- @classmethod
def do_var_prompt(self, varname, private=True, prompt=None, encrypt=None, confirm=False, salt_size=None, salt=None, default=None):
result = None
@@ -294,12 +293,12 @@ class Display:
second = do_prompt("confirm " + msg, private)
if result == second:
break
- display.display("***** VALUES ENTERED DO NOT MATCH ****")
+ self.display("***** VALUES ENTERED DO NOT MATCH ****")
else:
result = do_prompt(msg, private)
else:
result = None
- display.warning("Not prompting as we are not in interactive mode")
+ self.warning("Not prompting as we are not in interactive mode")
# if result is false and default is not None
if not result and default is not None: