From 5014aa31c41c4eb0fe31b2effe8e0ac49aaf2323 Mon Sep 17 00:00:00 2001 From: Andrew Block Date: Mon, 13 Apr 2026 08:12:02 -0500 Subject: [PATCH] fix: corrected variable names in validate_migration role Signed-off-by: Andrew Block --- roles/validate_migration/tasks/ocp_operators.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/roles/validate_migration/tasks/ocp_operators.yml b/roles/validate_migration/tasks/ocp_operators.yml index f1e0f08..bf27815 100644 --- a/roles/validate_migration/tasks/ocp_operators.yml +++ b/roles/validate_migration/tasks/ocp_operators.yml @@ -30,8 +30,8 @@ api_version: operators.coreos.com/v1 kind: OperatorGroup namespace: "{{ validate_migration_namespace }}" - register: validate_migration_infra_openshift_virtualization_migration_project - failed_when: validate_migration_infra_openshift_virtualization_migration_project.resources | length <= 0 + register: validate_migration_operatorgroup + failed_when: validate_migration_operatorgroup.resources | length <= 0 rescue: - name: ocp_operators | Debug Task (Runs if OperatorGroup doesn't Exists) @@ -43,12 +43,12 @@ msg: - > OperatorGroup - {{ infra_openshift_virtualization_migration_operatorgroup | json_query(__validate_migration_query) }} + {{ validate_migration_operatorgroup | json_query(__validate_migration_query) }} is already deployed, we shall continue verbosity: 3 vars: # yamllint disable-line rule:line-length - __validate_migration_query: resources[?contains(metadata.name, '{{ infra_openshift_virtualization_migration_namespace }}')].metadata.name + __validate_migration_query: resources[?contains(metadata.name, '{{ validate_migration_namespace }}')].metadata.name - name: ocp_operators | Verify Subscription exists block: @@ -58,7 +58,7 @@ kind: Subscription namespace: "{{ validate_migration_namespace }}" register: validate_migration_ocp_subscription - failed_when: infra_openshift_virtualization_migration.resources | length <= 0 + failed_when: validate_migration_ocp_subscription.resources | length <= 0 rescue: - name: ocp_operators | Debug Task (Runs if Subscription doesn't Exists)