Skip to content
This repository has been archived by the owner on Jun 13, 2021. It is now read-only.

Commit

Permalink
cnab-go OperationConfigs panic if we pass a nil function
Browse files Browse the repository at this point in the history
Signed-off-by: Yves Brissaud <[email protected]>
  • Loading branch information
eunomie committed Oct 31, 2019
1 parent 65d38c1 commit c877797
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/commands/image/inspect.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func runInspect(dockerCli command.Cli, appname string, opts inspectOptions) erro

installation.SetParameter(internal.ParameterInspectFormatName, format)

if err := a.Run(&installation.Claim, nil, nil); err != nil {
if err := a.Run(&installation.Claim, nil); err != nil {
return fmt.Errorf("inspect failed: %s\n%s", err, errBuf)
}
return nil
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func runRender(dockerCli command.Cli, appname string, opts renderOptions) error
}
installation.Parameters[internal.ParameterRenderFormatName] = opts.formatDriver

if err := action.Run(&installation.Claim, nil, nil); err != nil {
if err := action.Run(&installation.Claim, nil); err != nil {
return fmt.Errorf("render failed: %s\n%s", err, errBuf)
}
return nil
Expand Down

0 comments on commit c877797

Please sign in to comment.