From b8d880c16031419bcde6d9c92a1e2b93d6f42d40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthieu=20T=C3=A2che?= Date: Tue, 8 Aug 2023 16:31:17 +0200 Subject: [PATCH] linting --- anta/cli/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/anta/cli/__init__.py b/anta/cli/__init__.py index 381ade30f..5998a453d 100644 --- a/anta/cli/__init__.py +++ b/anta/cli/__init__.py @@ -117,7 +117,9 @@ def anta( if ctx.params.get("enable"): if ctx.params.get("enable_password") is None: if click.confirm("Is a password required to enter EOS privileged EXEC mode?"): - ctx.params["enable_password"] = click.prompt("Please enter a password to enter EOS privileged EXEC mode", type=str, hide_input=True, confirmation_prompt=True) + ctx.params["enable_password"] = click.prompt( + "Please enter a password to enter EOS privileged EXEC mode", type=str, hide_input=True, confirmation_prompt=True + ) if ctx.params.get("password") is None: raise click.BadParameter( f"EOS password needs to be provided by using either the '{anta.params[2].opts[0]}' option or the '{anta.params[5].opts[0]}' option." @@ -125,8 +127,6 @@ def anta( if not ctx.params.get("enable") and ctx.params.get("enable_password"): raise click.BadParameter(f"Providing a password to access EOS Privileged EXEC mode requires '{anta.params[4].opts[0]}' option.") - - # if not ctx.obj.get("_anta_help"): # # Ensure password is provided # if ctx.params.get("password") is None: