diff options
author | Brian Coca <brian.coca+git@gmail.com> | 2015-10-21 12:05:48 -0400 |
---|---|---|
committer | Brian Coca <brian.coca+git@gmail.com> | 2015-10-21 12:06:29 -0400 |
commit | 04aa7701d11e8b4fa5d27acb374da5fc9207e746 (patch) | |
tree | d8705ea9e37b3d0148f5892ee6ae364cbab3ce0d /lib/ansible/utils/display.py | |
parent | 42ce3de8d05ceb33c2b1d91f262f0cc853896431 (diff) | |
download | ansible-04aa7701d11e8b4fa5d27acb374da5fc9207e746.tar.gz |
fix prompt, static methods don't get 'self'
fixes #12833
Diffstat (limited to 'lib/ansible/utils/display.py')
-rw-r--r-- | lib/ansible/utils/display.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ansible/utils/display.py b/lib/ansible/utils/display.py index e4bc923a1a..f7fb89ebf9 100644 --- a/lib/ansible/utils/display.py +++ b/lib/ansible/utils/display.py @@ -264,8 +264,8 @@ class Display: self._errors[new_msg] = 1 @staticmethod - def prompt(self, msg): - prompt_string = to_bytes(msg, encoding=self._output_encoding()) + def prompt(msg): + prompt_string = to_bytes(msg, encoding=Display._output_encoding()) if sys.version_info >= (3,): # Convert back into text on python3. We do this double conversion # to get rid of characters that are illegal in the user's locale |