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:
@@ -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"})
|
||||
}
|
||||
|
||||
|
||||
@@ -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"})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user