From 1760a2d1d96f9339a004b7aa331afdbdde61bd01 Mon Sep 17 00:00:00 2001 From: Pavan Sadhana Date: Mon, 9 Dec 2024 17:54:08 +0530 Subject: [PATCH] changes --- playbooks/roles/ocp-cost-management/tasks/cmo-cleanup.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/roles/ocp-cost-management/tasks/cmo-cleanup.yml b/playbooks/roles/ocp-cost-management/tasks/cmo-cleanup.yml index e8f0f890..bf2b66d2 100644 --- a/playbooks/roles/ocp-cost-management/tasks/cmo-cleanup.yml +++ b/playbooks/roles/ocp-cost-management/tasks/cmo-cleanup.yml @@ -2,7 +2,7 @@ # this file is used for cleaning up the cost management operator resources - name: Get the name of cluster service version for Cost Management Operator - shell: oc get csv -n costmanagement-metrics-operator --no-headers | awk '{ if ($1 ~ /^cost-management-operator/) print $1 }' + shell: oc get csv -n costmanagement-metrics-operator --no-headers | awk '{ print $1 }' register: cost_management_csv - name: Get the subscription name