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

Commit

Permalink
Remove insecure references from bundle actions command (#698)
Browse files Browse the repository at this point in the history
* Remove insecure references from bundle actions commadn

* Fix test for bundle actions command
  • Loading branch information
radu-matei authored Apr 6, 2019
1 parent bf347b8 commit 48dd2f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 2 additions & 4 deletions cmd/duffle/bundle_actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ type bundleActionsCmd struct {
out io.Writer
home home.Home
bundle string
insecure bool
bundleIsFile bool
}

Expand All @@ -36,18 +35,17 @@ func newBundleActionsCmd(w io.Writer) *cobra.Command {
}

cmd.Flags().BoolVarP(&a.bundleIsFile, "bundle-is-file", "f", false, "Indicates that the bundle source is a file path")
cmd.Flags().BoolVarP(&a.insecure, "insecure", "k", false, "Do not verify the bundle (INSECURE)")

return cmd
}

func (a *bundleActionsCmd) run() error {
bundleFile, err := resolveBundleFilePath(a.bundle, a.home.String(), a.bundleIsFile, a.insecure)
bundleFile, err := resolveBundleFilePath(a.bundle, a.home.String(), a.bundleIsFile)
if err != nil {
return err
}

bun, err := loadBundle(bundleFile, a.insecure)
bun, err := loadBundle(bundleFile)
if err != nil {
return err
}
Expand Down
1 change: 0 additions & 1 deletion cmd/duffle/bundle_actions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ func TestBundleActions(t *testing.T) {
out: out,
bundleIsFile: true,
bundle: "./testdata/testbundle/actions-test-bundle.json",
insecure: true,
}

if err := cmd.run(); err != nil {
Expand Down

0 comments on commit 48dd2f9

Please sign in to comment.