def GetSecretsManagerForSecret(secret):
 global _user_secrets_manager
 if ((_user_secrets_manager is not None) and _user_secrets_manager.HasSecret(secret)):
  return _user_secrets_manager
 return GetSharedSecretsManager()

def GetSecretsManagerForSecret ( secret ) : global _user_secrets_manager if ( ( _user_secrets_manager is not None ) and _user_secrets_manager . HasSecret ( secret ) ) : return _user_secrets_manager return GetSharedSecretsManager ( )
returns the appropriate secrets manager for a secret .