From 21491f4a1d161e2fec308dfc60b6fca4124252f4 Mon Sep 17 00:00:00 2001 From: Yves Brissaud Date: Mon, 28 Oct 2019 08:00:47 +0100 Subject: [PATCH] cnab-go OperationConfigs panic if we pass a nil function Signed-off-by: Yves Brissaud --- internal/commands/image/inspect.go | 2 +- internal/commands/render.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/commands/image/inspect.go b/internal/commands/image/inspect.go index d1143ad9a..6a679383b 100644 --- a/internal/commands/image/inspect.go +++ b/internal/commands/image/inspect.go @@ -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 diff --git a/internal/commands/render.go b/internal/commands/render.go index a673d72b9..4138eb5d2 100644 --- a/internal/commands/render.go +++ b/internal/commands/render.go @@ -61,7 +61,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