Skip to content

Commit

Permalink
Handle topped Vault enablement in .env file
Browse files Browse the repository at this point in the history
  • Loading branch information
jyejare committed Oct 25, 2023
1 parent bc80991 commit 911f98c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion robottelo/utils/vault.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __init__(self, env_file='.env'):
def setup(self):
if self.env_path.exists():
self.envdata = self.env_path.read_text()
is_enabled = re.findall('\nVAULT_ENABLED_FOR_DYNACONF=(.*)', self.envdata)
is_enabled = re.findall('^(?:.*\n)*VAULT_ENABLED_FOR_DYNACONF=(.*)', self.envdata)
if is_enabled:
self.vault_enabled = is_enabled[0]
self.export_vault_addr()
Expand Down

0 comments on commit 911f98c

Please sign in to comment.