mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
updated self to cls to match convention
tempted to just use this. in all cases
This commit is contained in:
@@ -280,12 +280,12 @@ class Display:
|
|||||||
return input(prompt_string)
|
return input(prompt_string)
|
||||||
|
|
||||||
@classmethod
|
@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
|
result = None
|
||||||
if sys.__stdin__.isatty():
|
if sys.__stdin__.isatty():
|
||||||
|
|
||||||
do_prompt = self.prompt
|
do_prompt = cls.prompt
|
||||||
|
|
||||||
if prompt and default is not None:
|
if prompt and default is not None:
|
||||||
msg = "%s [%s]: " % (prompt, default)
|
msg = "%s [%s]: " % (prompt, default)
|
||||||
|
|||||||
Reference in New Issue
Block a user