vaultmanager/lib/VaultClient.py
def policy_list(self):
        """
        List all policies found in Vault

        :return: policies list
        """
        self.logger.debug("Fetching list of existing policies")
        self.logger.debug("Policies root and default will not be returned")
        policies = []
        if not self.dry_run():
            policies = self.vault_client.list_policies()
            policies = [pol for pol in policies if
                        pol not in ["root", "default"]]
        self.logger.debug(str(len(policies)) + " policies found")
        return policies

        List all policies found in Vault

        :return: policies list
        
List all policies found in Vault
List all policies found in Vault
def policy_list(self):
        self.logger.debug("Fetching list of existing policies")
        self.logger.debug("Policies root and default will not be returned")
        policies = []
        if not self.dry_run():
            policies = self.vault_client.list_policies()
            policies = [pol for pol in policies if
                        pol not in ["root", "default"]]
        self.logger.debug(str(len(policies)) + " policies found")
        return policies
def policy_list ( self ) : self . logger . debug ( "Fetching list of existing policies" ) self . logger . debug ( "Policies root and default will not be returned" ) policies = [ ] if not self . dry_run ( ) : policies = self . vault_client . list_policies ( ) policies = [ pol for pol in policies if pol not in [ "root" , "default" ] ] self . logger . debug ( str ( len ( policies ) ) + " policies found" ) return policies
List all policies found in Vault
List all policies found in Vault
"""
        List all policies found in Vault

        :return: policies list
        """
None
self