vaultmanager/modules/VaultManagerSecret.py
def find_secrets_engines_to_tune(self):
        """
        Identify secrets engines where a tuning is needed
        """
        self.logger.debug("Tuning secrets engines")
        for distant_secret in self.distant_secrets_engines:
            for local_secret in self.local_secrets_engines:
                if distant_secret == local_secret:
                    distant_tuning_hash = distant_secret.get_tuning_hash()
                    local_tuning_hash = local_secret.get_tuning_hash()
                    self.logger.debug("Hashs for %s/" % distant_secret.path)
                    self.logger.debug("Local: " + local_tuning_hash)
                    self.logger.debug("Distant: " + distant_tuning_hash)
                    if distant_tuning_hash != local_tuning_hash:
                        self.logger.info("The secret engine %s will be tuned" %
                                         local_secret.path)
                        self.tune_secret_engine(local_secret, distant_secret)
                    else:
                        self.logger.debug("The secret engine %s will not be tuned" %
                                          local_secret.path)

        Identify secrets engines where a tuning is needed
        
Identify secrets engines where a tuning is needed
Identify secrets engines where a tuning is needed
def find_secrets_engines_to_tune(self):
        self.logger.debug("Tuning secrets engines")
        for distant_secret in self.distant_secrets_engines:
            for local_secret in self.local_secrets_engines:
                if distant_secret == local_secret:
                    distant_tuning_hash = distant_secret.get_tuning_hash()
                    local_tuning_hash = local_secret.get_tuning_hash()
                    self.logger.debug("Hashs for %s/" % distant_secret.path)
                    self.logger.debug("Local: " + local_tuning_hash)
                    self.logger.debug("Distant: " + distant_tuning_hash)
                    if distant_tuning_hash != local_tuning_hash:
                        self.logger.info("The secret engine %s will be tuned" %
                                         local_secret.path)
                        self.tune_secret_engine(local_secret, distant_secret)
                    else:
                        self.logger.debug("The secret engine %s will not be tuned" %
                                          local_secret.path)
def find_secrets_engines_to_tune ( self ) : self . logger . debug ( "Tuning secrets engines" ) for distant_secret in self . distant_secrets_engines : for local_secret in self . local_secrets_engines : if distant_secret == local_secret : distant_tuning_hash = distant_secret . get_tuning_hash ( ) local_tuning_hash = local_secret . get_tuning_hash ( ) self . logger . debug ( "Hashs for %s/" % distant_secret . path ) self . logger . debug ( "Local: " + local_tuning_hash ) self . logger . debug ( "Distant: " + distant_tuning_hash ) if distant_tuning_hash != local_tuning_hash : self . logger . info ( "The secret engine %s will be tuned" % local_secret . path ) self . tune_secret_engine ( local_secret , distant_secret ) else : self . logger . debug ( "The secret engine %s will not be tuned" % local_secret . path )
Identify secrets engines where a tuning is needed
Identify secrets engines where a tuning is needed
"""
        Identify secrets engines where a tuning is needed
        """
self