fix: directly write deployed property

The previous method ended up validating the app name when checking if the app was deployed or not, which isn't necessary as that should only be performed at the command-level.
This commit is contained in:
Jose Diaz-Gonzalez
2025-09-14 05:08:23 -04:00
parent 7e748a1cf3
commit 1c6927b25e
2 changed files with 2 additions and 4 deletions

View File

@@ -687,8 +687,7 @@ func IsDeployed(appName string) bool {
}
EnvWrap(func() error {
CommandPropertySet("common", appName, "deployed", deployed, DefaultProperties, GlobalProperties)
return nil
return PropertyWrite("common", appName, "deployed", deployed)
}, map[string]string{"DOKKU_QUIET_OUTPUT": "1"})
}

View File

@@ -23,8 +23,7 @@ func TriggerAppList(filtered bool) error {
// TriggerCorePostDeploy associates the container with a specified network
func TriggerCorePostDeploy(appName string) error {
return EnvWrap(func() error {
CommandPropertySet("common", appName, "deployed", "true", DefaultProperties, GlobalProperties)
return nil
return PropertyWrite("common", appName, "deployed", "true")
}, map[string]string{"DOKKU_QUIET_OUTPUT": "1"})
}