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