Browse Source

Merge pull request #9065 from tomassedovic/fix-openstack-custom-uninstall

Use OPENSHIFT_CLUSTER env in OpenStack uninstall
OpenShift Merge Robot 6 years ago
parent
commit
a5a9ed9784
1 changed files with 3 additions and 0 deletions
  1. 3 0
      playbooks/openstack/openshift-cluster/uninstall.yml

+ 3 - 0
playbooks/openstack/openshift-cluster/uninstall.yml

@@ -29,6 +29,9 @@
 - name: Remove OpenStack resources
   hosts: localhost
   tasks:
+  - name: retrieve cluster name from the environment if present
+    set_fact:
+      openshift_openstack_stack_name: "{{ lookup('env', 'OPENSHIFT_CLUSTER') | ternary (lookup('env', 'OPENSHIFT_CLUSTER'), omit) }}"
   - name: Remove OpenStack resources
     import_role:
       name: openshift_openstack