fix: complete deployment release gates
This commit is contained in:
@@ -526,8 +526,14 @@ func ensureMaintenance(ctx context.Context, runner Runner) error {
|
||||
}
|
||||
|
||||
func activeSessions(ctx context.Context, runner Runner) (bool, error) {
|
||||
scope := "all"
|
||||
if scoped, ok := runner.(interface{ SessionInventoryScope() string }); ok {
|
||||
if requested := scoped.SessionInventoryScope(); requested == "mine" || requested == "all" {
|
||||
scope = requested
|
||||
}
|
||||
}
|
||||
args := append([]string{"exec", "-T", "core", "curl", "-fsS"}, internalIdentityHeaders...)
|
||||
args = append(args, "http://127.0.0.1:8787/sessions?scope=all")
|
||||
args = append(args, "http://127.0.0.1:8787/sessions?scope="+scope)
|
||||
result, err := runCompose(ctx, runner, args...)
|
||||
if err != nil {
|
||||
return false, commandError("active-session check", result, err)
|
||||
|
||||
Reference in New Issue
Block a user