This commit is contained in:
@ -35,7 +35,7 @@ func MergeAbraShEnv(recipe recipe.Recipe, env envfile.AppEnv) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// GetEntityNameAndVersion parses a full config name like `app_example_com_someconf_v1` to extract name and version, ("someconf", "v1")
|
||||
// GetEntityNameAndVersion parses a full name like `app_example_com_someconf_v1` to extract name and version, ("someconf", "v1")
|
||||
func GetEntityNameAndVersion(fullName string, stackName string) (string, string, error) {
|
||||
name := strings.TrimPrefix(fullName, stackName+"_")
|
||||
if lastUnderscore := strings.LastIndex(name, "_"); lastUnderscore != -1 {
|
||||
|
Reference in New Issue
Block a user