Skip to content

Commit

Permalink
Merge pull request #239 from clcollins/capabilities_typo_fix
Browse files Browse the repository at this point in the history
Fixes minor typo capabilities add.go
  • Loading branch information
openshift-ci[bot] authored Aug 3, 2022
2 parents 9db7786 + 53cb797 commit 300d504
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmd/capability/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (o *addOptions) complete(cmd *cobra.Command, args []string) error {
break
}
if i == len(availableCapabilities)-1 {
return fmt.Errorf("invalid capability specified. Avaialbe capabilites are hibernation, autoscaling, ovn and upgradeChannelChange")
return fmt.Errorf("invalid capability specified. Available capabilites are hibernation, autoscaling, ovn and upgradeChannelChange")
}
}

Expand Down
4 changes: 2 additions & 2 deletions cmd/capability/capability_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func TestAddComplete(t *testing.T) {
{
Name: "Providing invalid capability",
ErrorExpected: true,
ErrorReason: "invalid capability specified. Avaialbe capabilites are hibernation, autoscaling, ovn and upgradeChannelChange",
ErrorReason: "invalid capability specified. Available capabilites are hibernation, autoscaling, ovn and upgradeChannelChange",
Args: []string{"invalid"},
AddOptions: addOptions{OrganizationID: "myOrganization"},
},
Expand Down Expand Up @@ -171,7 +171,7 @@ func TestRemoveComplete(t *testing.T) {
{
Name: "Providing invalid capability",
ErrorExpected: true,
ErrorReason: "invalid capability specified. Avaialbe capabilites are hibernation, autoscaling, ovn and upgradeChannelChange",
ErrorReason: "invalid capability specified. Available capabilites are hibernation, autoscaling, ovn and upgradeChannelChange",
Args: []string{"invalid"},
RemoveOptions: removeOptions{OrganizationID: "myOrganization"},
},
Expand Down
4 changes: 2 additions & 2 deletions cmd/capability/remove.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (o *removeOptions) complete(cmd *cobra.Command, args []string) error {
break
}
if i == len(availableCapabilities)-1 {
return fmt.Errorf("invalid capability specified. Avaialbe capabilites are hibernation, autoscaling, ovn and upgradeChannelChange")
return fmt.Errorf("invalid capability specified. Available capabilites are hibernation, autoscaling, ovn and upgradeChannelChange")
}
}

Expand Down Expand Up @@ -77,7 +77,7 @@ func (o *removeOptions) run(cmd *cobra.Command, capability string) error {
// Build the base of the request path
var base string
if o.OrganizationID != "" {
// If the organization
// If the organizationID is set
base = organizationPath + "/" + o.OrganizationID
} else {
// If organization ID isn't spcified, we know subscription ID is
Expand Down

0 comments on commit 300d504

Please sign in to comment.