diff options
author | Scott Dodson <sdodson@redhat.com> | 2016-08-22 15:07:22 -0400 |
---|---|---|
committer | Scott Dodson <sdodson@redhat.com> | 2016-08-24 16:02:48 -0400 |
commit | 7c36172fb08e19abcd08b7be0aa7de68f5f166ad (patch) | |
tree | e2c4065c0a167d76bf882b364711359c002754ef /roles/openshift_hosted/tasks | |
parent | c0067ca0646c99dc428f09f3e68eacfab683394f (diff) | |
download | openshift-7c36172fb08e19abcd08b7be0aa7de68f5f166ad.tar.gz openshift-7c36172fb08e19abcd08b7be0aa7de68f5f166ad.tar.bz2 openshift-7c36172fb08e19abcd08b7be0aa7de68f5f166ad.tar.xz openshift-7c36172fb08e19abcd08b7be0aa7de68f5f166ad.zip |
Fix registry volume
Diffstat (limited to 'roles/openshift_hosted/tasks')
-rw-r--r-- | roles/openshift_hosted/tasks/registry/storage/persistent_volume.yml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/roles/openshift_hosted/tasks/registry/storage/persistent_volume.yml b/roles/openshift_hosted/tasks/registry/storage/persistent_volume.yml index 6bf859e82..60eefd71a 100644 --- a/roles/openshift_hosted/tasks/registry/storage/persistent_volume.yml +++ b/roles/openshift_hosted/tasks/registry/storage/persistent_volume.yml @@ -5,10 +5,11 @@ - name: Determine if volume is already attached to dc/docker-registry command: "{{ openshift.common.client_binary }} get -o template dc/docker-registry --template=\\{\\{.spec.template.spec.volumes\\}\\} --output-version=v1" changed_when: false + failed_when: false register: registry_volumes_output - set_fact: - volume_attached: "{{ registry_volume_claim in registry_volumes_output.stdout }}" + volume_attached: "{{ registry_volume_claim in (registry_volumes_output).stdout | default(['']) }}" - name: Add volume to dc/docker-registry command: > |