We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d1c36b commit 5a59ffaCopy full SHA for 5a59ffa
internal/orchestrator/helpers.go
@@ -169,12 +169,17 @@ func getAppStatus(
169
docker command.Cli,
170
app app.ArduinoApp,
171
) (AppStatusInfo, error) {
172
- statusInfo, err := getAppStatusByPath(ctx, docker.Client(), app.FullPath.String())
173
-
+ apps, err := getAppsStatus(ctx, docker.Client())
174
if err != nil {
175
return AppStatusInfo{}, fmt.Errorf("failed to get app status: %w", err)
176
}
177
- return *statusInfo, nil
+ idx := slices.IndexFunc(apps, func(a AppStatusInfo) bool {
+ return a.AppPath.String() == app.FullPath.String()
178
+ })
179
+ if idx == -1 {
180
+ return AppStatusInfo{}, fmt.Errorf("app %s not found", app.FullPath)
181
+ }
182
+ return apps[idx], nil
183
184
185
func getRunningApp(
0 commit comments