From 6679b5957580a595d70a3d1ddb0973e35c33e111 Mon Sep 17 00:00:00 2001 From: Alex-Welsh Date: Thu, 7 Nov 2024 11:56:21 +0000 Subject: [PATCH] Fix warnings --- etc/kayobe/ansible/deploy-os-capacity-exporter.yml | 12 ++++++------ etc/kayobe/ansible/run-container-hotfix.yml | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/etc/kayobe/ansible/deploy-os-capacity-exporter.yml b/etc/kayobe/ansible/deploy-os-capacity-exporter.yml index 17d40d45e..e60b1bba1 100644 --- a/etc/kayobe/ansible/deploy-os-capacity-exporter.yml +++ b/etc/kayobe/ansible/deploy-os-capacity-exporter.yml @@ -31,17 +31,17 @@ - name: Set facts for admin credentials ansible.builtin.set_fact: - stackhpc_os_capacity_auth_url: "{{ credential.stdout_lines | select('match', '.*OS_AUTH_URL*.')\ + stackhpc_os_capacity_auth_url: "{{ credential.stdout_lines | select('match', '.*OS_AUTH_URL*.') \ | first | split('=') | last | replace(\"'\", '') }}" - stackhpc_os_capacity_project_name: "{{ credential.stdout_lines | select('match', '.*OS_PROJECT_NAME*.')\ + stackhpc_os_capacity_project_name: "{{ credential.stdout_lines | select('match', '.*OS_PROJECT_NAME*.') \ | first | split('=') | last | replace(\"'\", '') }}" - stackhpc_os_capacity_domain_name: "{{ credential.stdout_lines | select('match', '.*OS_PROJECT_DOMAIN_NAME*.')\ + stackhpc_os_capacity_domain_name: "{{ credential.stdout_lines | select('match', '.*OS_PROJECT_DOMAIN_NAME*.') \ | first | split('=') | last | replace(\"'\", '') }}" - stackhpc_os_capacity_openstack_region_name: "{{ credential.stdout_lines | select('match', '.*OS_REGION_NAME*.')\ + stackhpc_os_capacity_openstack_region_name: "{{ credential.stdout_lines | select('match', '.*OS_REGION_NAME*.') \ | first | split('=') | last | replace(\"'\", '') }}" - stackhpc_os_capacity_username: "{{ credential.stdout_lines | select('match', '.*OS_USERNAME*.')\ + stackhpc_os_capacity_username: "{{ credential.stdout_lines | select('match', '.*OS_USERNAME*.') \ | first | split('=') | last | replace(\"'\", '') }}" - stackhpc_os_capacity_password: "{{ credential.stdout_lines | select('match', '.*OS_PASSWORD*.')\ + stackhpc_os_capacity_password: "{{ credential.stdout_lines | select('match', '.*OS_PASSWORD*.') \ | first | split('=') | last | replace(\"'\", '') }}" when: stackhpc_enable_os_capacity diff --git a/etc/kayobe/ansible/run-container-hotfix.yml b/etc/kayobe/ansible/run-container-hotfix.yml index 32307974a..8636a85b6 100644 --- a/etc/kayobe/ansible/run-container-hotfix.yml +++ b/etc/kayobe/ansible/run-container-hotfix.yml @@ -22,5 +22,5 @@ - name: Run container_hotfix_command ansible.builtin.command: "{{ kolla_container_engine | default('docker') }} exec \ - {{ '-u 0' if container_hotfix_become else '' }} {{ hotfix_container }} {{ container_hotfix_command}}" + {{ '-u 0' if container_hotfix_become else '' }} {{ hotfix_container }} {{ container_hotfix_command }}" when: container_hotfix_command