Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Commit

Permalink
Some fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Prafulla Mahindrakar <[email protected]>
  • Loading branch information
pmahindrakar-oss committed May 14, 2021
1 parent 7c519c9 commit 57ceb9f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/delete/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func RemoteDeleteCommand() *cobra.Command {
"cluster-resource-attribute": {CmdFunc: deleteClusterResourceAttributes, Aliases: []string{"cluster-resource-attributes"},
Short: clusterResourceAttributesShort,
Long: clusterResourceAttributesLong, PFlagProvider: clusterresourceattribute.DefaultDelConfig, ProjectDomainNotRequired: true},
"execution-cluster-label": {CmdFunc: deleteExecutionQueueAttributes, Aliases: []string{"execution-cluster-labels"},
"execution-cluster-label": {CmdFunc: deleteExecutionClusterLabel, Aliases: []string{"execution-cluster-labels"},
Short: executionClusterLabelShort,
Long: executionClusterLabelLong, PFlagProvider: executionclusterlabel.DefaultDelConfig, ProjectDomainNotRequired: true},
"execution-queue-attribute": {CmdFunc: deleteExecutionQueueAttributes, Aliases: []string{"execution-queue-attributes"},
Expand Down
2 changes: 1 addition & 1 deletion cmd/update/matchable_execution_cluster_label.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Usage
func updateExecutionClusterLabelFunc(ctx context.Context, args []string, cmdCtx cmdCore.CommandContext) error {
updateConfig := executionclusterlabel.DefaultUpdateConfig
if len(updateConfig.AttrFile) == 0 {
return fmt.Errorf("attrFile is mandatory while calling update for execution queue attribute")
return fmt.Errorf("attrFile is mandatory while calling update for execution cluster label")
}

executionClusterLabelFileConfig := executionclusterlabel.FileConfig{}
Expand Down
2 changes: 1 addition & 1 deletion cmd/update/matchable_execution_cluster_label_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func TestExecutionClusterLabel(t *testing.T) {
updateExecutionClusterLabelSetup()
err = updateExecutionClusterLabelFunc(ctx, args, cmdCtx)
assert.NotNil(t, err)
assert.Equal(t, fmt.Errorf("attrFile is mandatory while calling update for execution queue attribute"), err)
assert.Equal(t, fmt.Errorf("attrFile is mandatory while calling update for execution cluster label"), err)
tearDownAndVerify(t, ``)
})
t.Run("successful update project domain attribute", func(t *testing.T) {
Expand Down

0 comments on commit 57ceb9f

Please sign in to comment.