summaryrefslogtreecommitdiffstats
path: root/roles/openshift_openstack/tasks/check-prerequisites.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/openshift_openstack/tasks/check-prerequisites.yml')
-rw-r--r--roles/openshift_openstack/tasks/check-prerequisites.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/openshift_openstack/tasks/check-prerequisites.yml b/roles/openshift_openstack/tasks/check-prerequisites.yml
index 4d7cfbf11..13000e31f 100644
--- a/roles/openshift_openstack/tasks/check-prerequisites.yml
+++ b/roles/openshift_openstack/tasks/check-prerequisites.yml
@@ -76,13 +76,13 @@
- name: Try to show keypair
command: >
python -c 'import shade; cloud = shade.openstack_cloud();
- exit(cloud.get_keypair("{{ openstack_ssh_public_key }}") is None)'
+ exit(cloud.get_keypair("{{ openstack_keypair_name }}") is None)'
ignore_errors: yes
register: key_result
- name: Check that keypair is available
assert:
that: 'key_result.rc == 0'
- msg: "Keypair {{ openstack_ssh_public_key }} is not available"
+ msg: "Keypair {{ openstack_keypair_name }} is not available"
# Check that custom images are available
- include: custom_image_check.yaml