Skip to content

Commit af626e2

Browse files
pawanpinjarkaropenshift-cherrypick-robot
authored andcommitted
OCPBUGS-55048: Return error in case of error
1 parent f39295c commit af626e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cli/admin/nodeimage/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ func (o *CreateOptions) AddFlags(cmd *cobra.Command) {
176176
func (o *CreateOptions) Complete(f kcmdutil.Factory, cmd *cobra.Command, args []string) error {
177177
err := o.baseComplete(f)
178178
if err != nil {
179-
return nil
179+
return err
180180
}
181181

182182
if o.AssetsDir == "" {

0 commit comments

Comments
 (0)