Skip to content

Commit

Permalink
Merge pull request #601 from ahitacat/fix-edit
Browse files Browse the repository at this point in the history
OCM-6407 | edit option sends an empty payload
  • Loading branch information
tzvatot authored Mar 11, 2024
2 parents 8855f3d + d894c2a commit 9451a5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/ocm/edit/cluster/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ var Cmd = &cobra.Command{
Example: ` # Edit a cluster named "mycluster" to make it private
ocm edit cluster mycluster --private`,
RunE: run,
Args: cobra.MinimumNArgs(1),
}

func init() {
Expand Down Expand Up @@ -133,7 +134,7 @@ func wasClusterWideProxyReceived(httpProxy, httpsProxy, noProxy, additionalTrust
}

func run(cmd *cobra.Command, argv []string) error {
// Check that there is exactly one cluster name, identifir or external identifier in the
// Check that there is exactly one cluster name, identifier or external identifier in the
// command line arguments:
if len(argv) != 1 {
return fmt.Errorf(
Expand Down

0 comments on commit 9451a5b

Please sign in to comment.