Missing default arg values for prompt/display

This commit is contained in:
Alexandre Aubin 2021-07-09 21:55:15 +02:00
parent 67d9c9cdd1
commit 8c8c1d4829
2 changed files with 3 additions and 3 deletions

View file

@ -473,7 +473,7 @@ class _ActionsMapPlugin(object):
else: else:
queue.put(StopIteration) queue.put(StopIteration)
def display(self, message, style): def display(self, message, style="info"):
s_id = Sesson.get_infos()["id"] s_id = Sesson.get_infos()["id"]
try: try:

View file

@ -529,7 +529,7 @@ class Interface:
credentials = self.prompt(msg, True, False, color="yellow") credentials = self.prompt(msg, True, False, color="yellow")
return authenticator.authenticate_credentials(credentials=credentials) return authenticator.authenticate_credentials(credentials=credentials)
def prompt(self, message, is_password, confirm, color="blue"): def prompt(self, message, is_password=False, confirm=False, color="blue"):
"""Prompt for a value """Prompt for a value
Keyword arguments: Keyword arguments:
@ -552,7 +552,7 @@ class Interface:
return value return value
def display(self, message, style): def display(self, message, style="info"):
"""Display a message """Display a message
""" """