diff --git a/cmd/delete/delete.go b/cmd/delete/delete.go index 9c1a56f8..8bee8c58 100644 --- a/cmd/delete/delete.go +++ b/cmd/delete/delete.go @@ -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"}, diff --git a/cmd/get/matchable_execution_queue_cluster_label_test.go b/cmd/get/matchable_execution_cluster_label_test.go similarity index 100% rename from cmd/get/matchable_execution_queue_cluster_label_test.go rename to cmd/get/matchable_execution_cluster_label_test.go diff --git a/cmd/update/matchable_execution_cluster_label.go b/cmd/update/matchable_execution_cluster_label.go index ac90cb95..1a8dfe66 100644 --- a/cmd/update/matchable_execution_cluster_label.go +++ b/cmd/update/matchable_execution_cluster_label.go @@ -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{} diff --git a/cmd/update/matchable_execution_cluster_label_test.go b/cmd/update/matchable_execution_cluster_label_test.go index 51497fef..b22b444b 100644 --- a/cmd/update/matchable_execution_cluster_label_test.go +++ b/cmd/update/matchable_execution_cluster_label_test.go @@ -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) {