1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

updated self to cls to match convention

tempted to just use this. in all cases
This commit is contained in:
Brian Coca 2016-01-08 17:57:09 -05:00
parent 792db08259
commit c9a5f7ea7e

View file

@ -280,12 +280,12 @@ class Display:
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):
def do_var_prompt(cls, varname, private=True, prompt=None, encrypt=None, confirm=False, salt_size=None, salt=None, default=None):
result = None
if sys.__stdin__.isatty():
do_prompt = self.prompt
do_prompt = cls.prompt
if prompt and default is not None:
msg = "%s [%s]: " % (prompt, default)