fix: properly handle NoAppsExist in network:rebuild-all and buildpacks:set

Refs #6815
This commit is contained in:
Jose Diaz-Gonzalez
2025-03-08 23:49:11 -05:00
parent 4ffbd357ee
commit b4f3741ac7
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
}