Move to using virtualenv

This commit is contained in:
Wojciech Kozlowski 2023-02-11 10:29:17 +01:00
parent 84977b5322
commit 8f2ba5b17f
2 changed files with 5 additions and 2 deletions

3
requirements.txt Normal file
View File

@ -0,0 +1,3 @@
ansible
keyring
requests

View File

@ -104,11 +104,11 @@ def build_arg_parser():
def main():
config_manager = ConfigManager()
username = config_manager.data.get_setting('vault.username')
username = config_manager.get_configuration_definition('vault.username')
if not username:
username = getpass.getuser()
keyname = config_manager.data.get_setting('vault.keyname')
keyname = config_manager.get_configuration_definition('vault.keyname')
if not keyname:
keyname = 'ansible'