Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
tdviet committed Jun 22, 2022
1 parent a092788 commit b4d61f6
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions fedcloudclient/secret.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from cryptography.fernet import Fernet, InvalidToken
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMAC
from hvac.exceptions import VaultError
from tabulate import tabulate

from fedcloudclient.checkin import get_checkin_id
Expand Down Expand Up @@ -50,12 +51,13 @@ def secret_client(access_token, command, path, data):
secret=data,
)
else:
response = function_list[command](path=full_path, mount_point=VAULT_MOUNT_POINT)
response = function_list[command](
path=full_path,
mount_point=VAULT_MOUNT_POINT,
)
return response
except hvac.exceptions.VaultError as e:
raise SystemExit(
f"Error: Error when connecting to Vault server. {e}"
)
except VaultError as e:
raise SystemExit(f"Error: Error when connecting to Vault server. {e}")


def secret_params_to_dict(params):
Expand Down

0 comments on commit b4d61f6

Please sign in to comment.