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:
parent
792db08259
commit
c9a5f7ea7e
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue