Skip to content

Commit

Permalink
update conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
patapenka-alexey committed Jan 15, 2025
1 parent c9f43fc commit 567ca4e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cli/cmd/clean.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func internalCleanModule(cmdCtx *cmdcontext.CmdCtx, args []string) error {
}

var runningCtx running.RunningCtx
err := running.FillCtx(cliOpts, cmdCtx, &runningCtx, args, false, false)
err := running.FillCtx(cliOpts, cmdCtx, &runningCtx, args, true, false)
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion cli/cmd/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ func parseAppStr(cmdCtx *cmdcontext.CmdCtx, appStr string) (string, string, stri
// Fill context for the entire application.
// publish app:inst can work even if the `inst` instance doesn't exist right now.
var runningCtx running.RunningCtx
err := running.FillCtx(cliOpts, cmdCtx, &runningCtx, []string{appName}, false, false)
err := running.FillCtx(cliOpts, cmdCtx, &runningCtx, []string{appName}, true, false)
if err != nil {
return "", "", "", err
}
Expand Down
4 changes: 2 additions & 2 deletions cli/cmd/replicaset.go
Original file line number Diff line number Diff line change
Expand Up @@ -514,8 +514,8 @@ func replicasetFillCtx(cmdCtx *cmdcontext.CmdCtx, ctx *replicasetCtx, target str
}
// Re-fill context for an application.
ctx.InstName = instName
err := running.FillCtx(cliOpts, cmdCtx, &ctx.RunningCtx, []string{appName}, true,
true)
err := running.FillCtx(cliOpts, cmdCtx, &ctx.RunningCtx, []string{appName},
configRequired, scriptRequired)
if err != nil {
// Should not happen.
return err
Expand Down
2 changes: 1 addition & 1 deletion cli/cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func internalStartModule(cmdCtx *cmdcontext.CmdCtx, args []string) error {
}

var runningCtx running.RunningCtx
err := running.FillCtx(cliOpts, cmdCtx, &runningCtx, args, true, false)
err := running.FillCtx(cliOpts, cmdCtx, &runningCtx, args, true, true)
if err != nil {
return err
}
Expand Down

0 comments on commit 567ca4e

Please sign in to comment.