Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Commit

Permalink
ref: print credentials only on dry-run (#374)
Browse files Browse the repository at this point in the history
This fixes the 'duffle creds gen' command to not print credentials by default.

In noticed this while looking at #370, though it does not fix all of that issue.
  • Loading branch information
technosophos authored Nov 6, 2018
1 parent b527de0 commit fea4886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/duffle/credential_generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ func newCredentialGenerateCmd(out io.Writer) *cobra.Command {
return err
}

fmt.Printf("%v", string(data))
if dryRun {
fmt.Fprintf(out, "%v", string(data))
return nil
}

Expand Down

0 comments on commit fea4886

Please sign in to comment.