Fix generated run lifecycle profile scope

This commit is contained in:
npc0-hue
2026-08-31 01:20:36 +08:00
parent 8194671656
commit fa2ce17ce3
4 changed files with 74 additions and 3 deletions
+1 -1
View File
@@ -319,7 +319,7 @@ func (svc *CoreService) dispatchLifecycleJob(instance domain.ServerInstance, act
if err == nil && strings.TrimSpace(binding.ProfileKey) != "" {
profileKey = binding.ProfileKey
} else {
profileKey = instance.Deployment.ProfileKey
profileKey = lifecycleDefaultProfileKey(instance, plugin, instance.Deployment.ProfileKey)
}
actionRef := ""
profile, hasProfile := runtimeLifecycleProfileForKey(plugin.RuntimeProfiles, profileKey)