Skip to content

Commit 51085ec

Browse files
pawanpinjarkaropenshift-cherrypick-robot
authored andcommitted
OCPBUGS-55048: Return error in case of error
1 parent 04e91ac commit 51085ec

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
@@ -177,7 +177,7 @@ func (o *CreateOptions) AddFlags(cmd *cobra.Command) {
177177
func (o *CreateOptions) Complete(f kcmdutil.Factory, cmd *cobra.Command, args []string) error {
178178
err := o.baseComplete(f)
179179
if err != nil {
180-
return nil
180+
return err
181181
}
182182

183183
if o.AssetsDir == "" {

0 commit comments

Comments
 (0)