Merge pull request #7576 from dokku/6815-handle-no-apps

fix: properly handle NoAppsExist in network:rebuild-all and buildpacks:set
This commit is contained in:
Jose Diaz-Gonzalez
2025-03-08 23:47:03 -06:00
committed by GitHub
2 changed files with 5 additions and 1 deletions

View File

@@ -162,7 +162,7 @@ func CommandSetProperty(appName string, property string, value string) error {
}
apps, err := common.DokkuApps()
if err != nil {
if err != nil && !errors.Is(err, common.NoAppsExist) {
return err
}
for _, app := range apps {

View File

@@ -145,6 +145,10 @@ func CommandList(format string) error {
func CommandRebuildall() error {
apps, err := common.DokkuApps()
if err != nil {
if errors.Is(err, common.NoAppsExist) {
common.LogWarn(err.Error())
return nil
}
return err
}