Skip to content

Commit 0ea8449

Browse files
witmickovchepeli
witmicko
authored andcommitted
fixes
1 parent adfe68a commit 0ea8449

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/cmd/clients.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ func (cc *ClientCmd) SetClientValueFromJsonCmd() *cobra.Command {
277277

278278
res, err = cc.mobileClient.MobileV1alpha1().MobileClients(ns).Patch(clientID, types.MergePatchType, []byte(patch))
279279
if err != nil {
280-
return errors.Wrap(err, "failed to patch mobile client with clientID "+clientID)
280+
return errors.Wrap(err, fmt.Sprintf("failed to patch mobile client with clientID %s", clientID))
281281
}
282282

283283
outType := outputType(cmd.Flags())
@@ -344,9 +344,9 @@ func (cc *ClientCmd) SetClientSpecValueCmd() *cobra.Command {
344344

345345
res, err = cc.mobileClient.MobileV1alpha1().MobileClients(ns).Patch(clientId, types.MergePatchType, []byte(patch))
346346
if err != nil {
347-
return errors.Wrap(err, "failed to set value in mobile client with clientID "+clientId)
347+
return errors.Wrap(err, fmt.Sprintf("failed to set value in mobile client with clientID %s", clientId))
348348
}
349-
//outType := outputType(cmd.Flags())
349+
350350
if err := cc.Out.Render(cmd.Name(), "json", res); err != nil {
351351
return errors.Wrap(err, fmt.Sprintf(output.FailedToOutPutInFormat, "mobile client", "json"))
352352
}
@@ -355,7 +355,7 @@ func (cc *ClientCmd) SetClientSpecValueCmd() *cobra.Command {
355355
},
356356
}
357357
command.PersistentFlags().StringVarP(&clientId, "client", "c", "", "value")
358-
command.PersistentFlags().StringVarP(&valueName, "name", "n", "", "value")
358+
command.PersistentFlags().StringVarP(&valueName, "name", "n", "", "name")
359359
command.PersistentFlags().StringVarP(&value, "value", "v", "", "value")
360360
return command
361361
}

0 commit comments

Comments
 (0)