Fix deprecated os_project_facts ansible module usage

This patch fixes the warning:

[DEPRECATION WARNING]: The 'os_project_facts' module has been renamed to
'os_project_info', and the renamed one no longer returns ansible_facts.

Change-Id: I7fe4bda991b968530453c620e1ea56a187a26924
This commit is contained in:
Jonathan Rosser 2020-05-12 17:18:44 +01:00
parent 101f354984
commit c5f44982bd
1 changed files with 2 additions and 2 deletions

View File

@ -266,7 +266,7 @@
- tempest_service_available_nova | bool
- name: Get the admin user project id
os_project_facts:
os_project_info:
cloud: "{{ tempest_cloud_name }}"
name: admin
interface: "{{ tempest_interface_name }}"
@ -278,7 +278,7 @@
- name: Store admin project id
set_fact:
tempest_admin_tenant_id: "{{ ansible_facts.openstack_projects[0].id }}"
tempest_admin_tenant_id: "{{ _get_admin_project.openstack_projects[0].id }}"
- name: Ping router ip address
shell: |