diff options
Diffstat (limited to 'pkg/commands/oscommands/cmd_obj_runner.go')
-rw-r--r-- | pkg/commands/oscommands/cmd_obj_runner.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/commands/oscommands/cmd_obj_runner.go b/pkg/commands/oscommands/cmd_obj_runner.go index dbea23bf3..816e56ad6 100644 --- a/pkg/commands/oscommands/cmd_obj_runner.go +++ b/pkg/commands/oscommands/cmd_obj_runner.go @@ -24,9 +24,9 @@ var _ ICmdObjRunner = &cmdObjRunner{} func (self *cmdObjRunner) runWithCredentialHandling(cmdObj ICmdObj) error { switch cmdObj.GetCredentialStrategy() { case PROMPT: - return self.RunCommandWithOutputLive(cmdObj, self.guiIO.promptForCredentialFn) + return self.RunAndDetectCredentialRequest(cmdObj, self.guiIO.promptForCredentialFn) case FAIL: - return self.RunCommandWithOutputLive(cmdObj, func(s string) string { return "\n" }) + return self.RunAndDetectCredentialRequest(cmdObj, func(CredentialName) string { return "\n" }) } // we should never land here |