Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Finucane <[email protected]>
  • Loading branch information
stephenfin committed Nov 17, 2023
1 parent b7b3bcb commit 9f5b3b3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions pwclient/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,13 @@ def main(argv=sys.argv[1:]):

if action in auth_actions:
if backend == 'rest':
if not ((
config.has_option(project_str, 'username')
and config.has_option(project_str, 'password')
) or config.has_option(project_str, 'token')):
if not (
(
config.has_option(project_str, 'username')
and config.has_option(project_str, 'password')
)
or config.has_option(project_str, 'token')
):
sys.stderr.write(
"The %s action requires authentication, but no "
"username/password or\n"
Expand Down

0 comments on commit 9f5b3b3

Please sign in to comment.