in server/src/main/kotlin/org/jetbrains/teamcity/vault/server/HashicorpVaultConnectionIdGenerator.kt [36:49]
public override fun newId(props: MutableMap<String?, String?>): String {
val userDefinedConnId = props.get(FeatureSettings.USER_DEFINED_ID_PARAM)
// try to remove it from the properties map to avoid it being persisted
runCatching {
props.remove(FeatureSettings.USER_DEFINED_ID_PARAM)
}
return if (userDefinedConnId == null) {
myIdGenerator.newId()
} else {
userDefinedConnId
}
}