quick hack to make identity names more unique

This commit is contained in:
Michael Quigley 2022-12-21 21:48:24 -05:00
parent bbb4fd0656
commit 2fb9e4fa9b
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62

View File

@ -15,7 +15,7 @@ import (
func CreateEnvironmentIdentity(accountEmail, envDescription string, edge *rest_management_api_client.ZitiEdgeManagement) (*identity.CreateIdentityCreated, error) {
identityType := rest_model_edge.IdentityTypeUser
moreTags := map[string]interface{}{"zrokEmail": accountEmail}
return CreateIdentity(envDescription, identityType, moreTags, edge)
return CreateIdentity(accountEmail+"-"+envDescription, identityType, moreTags, edge)
}
func CreateIdentity(name string, identityType rest_model_edge.IdentityType, addlTags map[string]interface{}, edge *rest_management_api_client.ZitiEdgeManagement) (*identity.CreateIdentityCreated, error) {