Bläddra i källkod

Merge pull request #7465 from jarrpa/glusterfs-topology-check

Automatic merge from submit-queue.

GlusterFS: Don't copy non-existant topology file
OpenShift Merge Robot 7 år sedan
förälder
incheckning
b22796ab6d
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1 0
      roles/openshift_storage_glusterfs/tasks/glusterfs_common.yml

+ 1 - 0
roles/openshift_storage_glusterfs/tasks/glusterfs_common.yml

@@ -248,6 +248,7 @@
   shell: "{{ openshift_client_binary }} exec --namespace={{ glusterfs_namespace }} -i {%if not glusterfs_heketi_is_missing %}{{ heketi_pod.results.results[0]['items'][0]['metadata']['name'] }}{% else %}{{ deploy_heketi_pod.results.results[0]['items'][0]['metadata']['name'] }}{% endif %} -- bash -c 'mkdir -p {{ mktemp.stdout }} && cat > {{ mktemp.stdout }}/topology.json' < {{ mktemp.stdout }}/topology.json"
   when:
   - glusterfs_heketi_is_native
+  - glusterfs_heketi_topology_load
 
 - name: Load heketi topology
   command: "{{ glusterfs_heketi_client }} topology load --json={{ mktemp.stdout }}/topology.json 2>&1"