vaultmanager/lib/VaultClient.py
def fetch_api_address(self, vault_addr):
        """
        Fetch the Vault API address and instanciate hvac client
        :param vault_addr: vault address which will overload env var VAULT_ADDR
        :type vault_addr :str
        """
        if vault_addr:
            vault_address = vault_addr
        elif "VAULT_ADDR" in os.environ:
            self.logger.debug("'VAULT_ADDR' found in env")
            vault_address = os.environ["VAULT_ADDR"]
        else:
            self.logger.error("No Vault address found")
        self.logger.debug("Vault address to be used: " + vault_address)
        self.vault_client = hvac.Client(
            url=vault_address,
            verify=(not self.skip_tls)
        )

        Fetch the Vault API address and instanciate hvac client
        :param vault_addr: vault address which will overload env var VAULT_ADDR
        :type vault_addr :str
        
Fetch the Vault API address and instanciate hvac client
Fetch the Vault API address and instanciate hvac client
def fetch_api_address(self, vault_addr):
        if vault_addr:
            vault_address = vault_addr
        elif "VAULT_ADDR" in os.environ:
            self.logger.debug("'VAULT_ADDR' found in env")
            vault_address = os.environ["VAULT_ADDR"]
        else:
            self.logger.error("No Vault address found")
        self.logger.debug("Vault address to be used: " + vault_address)
        self.vault_client = hvac.Client(
            url=vault_address,
            verify=(not self.skip_tls)
        )
def fetch_api_address ( self , vault_addr ) : if vault_addr : vault_address = vault_addr elif "VAULT_ADDR" in os . environ : self . logger . debug ( "'VAULT_ADDR' found in env" ) vault_address = os . environ [ "VAULT_ADDR" ] else : self . logger . error ( "No Vault address found" ) self . logger . debug ( "Vault address to be used: " + vault_address ) self . vault_client = hvac . Client ( url = vault_address , verify = ( not self . skip_tls ) )
Fetch the Vault API address and instanciate hvac client
Fetch the Vault API address and instanciate hvac client
"""
        Fetch the Vault API address and instanciate hvac client
        :param vault_addr: vault address which will overload env var VAULT_ADDR
        :type vault_addr :str
        """
self
vault_addr
vault address which will overload env var VAULT_ADDR
vault address which will overload env var VAULT_ADDR