Skip to content

Commit

Permalink
fix(influx): update influx pkg cmd flag secrets delimter to match vau…
Browse files Browse the repository at this point in the history
…lts using an `=`
  • Loading branch information
jsteenb2 committed Jan 9, 2020
1 parent 825b4f8 commit ba7502a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/influx/pkg.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func (b *cmdPkgBuilder) cmdPkgApply() *cobra.Command {
cmd.Flags().BoolVar(&b.hasTableBorders, "table-borders", true, "Enable table borders, defaults true")

b.applyOpts.secrets = []string{}
cmd.Flags().StringSliceVar(&b.applyOpts.secrets, "secret", nil, "Secrets to provide alongside the package; format should --secret=SECRET_KEY::SECRET_VALUE --secret=SECRET_KEY_2::SECRET_VALUE_2")
cmd.Flags().StringSliceVar(&b.applyOpts.secrets, "secret", nil, "Secrets to provide alongside the package; format should --secret=SECRET_KEY=SECRET_VALUE --secret=SECRET_KEY_2=SECRET_VALUE_2")

cmd.RunE = b.pkgApplyRunEFn()

Expand Down Expand Up @@ -147,7 +147,7 @@ func (b *cmdPkgBuilder) pkgApplyRunEFn() func(*cobra.Command, []string) error {
providedSecrets[secretKey] = ""
}
for _, secretPair := range b.applyOpts.secrets {
pieces := strings.Split(secretPair, "::")
pieces := strings.SplitN(secretPair, "=", 2)
if len(pieces) < 2 {
continue
}
Expand Down

0 comments on commit ba7502a

Please sign in to comment.