Skip to content

Commit 298429b

Browse files
Merge pull request openshift#2052 from openshift-cherrypick-robot/cherry-pick-2049-to-release-4.19
[release-4.19] OCPBUGS-58077: Return error in case of error
2 parents fa1fd95 + c90945a commit 298429b

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)