diff options
author | Scott Dodson <sdodson@redhat.com> | 2016-08-25 09:33:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-25 09:33:21 -0400 |
commit | d08a872a0392c100e86eed41f5d5372d226538c0 (patch) | |
tree | 14286133d094e90882258506cf34d25ada484f37 /roles/openshift_hosted | |
parent | 0af3d7cd96e4584c2d1301d84c1f02234a8cfdb5 (diff) | |
parent | 3f2d71a1bfb589778733dd8eb0ccd6b1dac31d79 (diff) | |
download | openshift-d08a872a0392c100e86eed41f5d5372d226538c0.tar.gz openshift-d08a872a0392c100e86eed41f5d5372d226538c0.tar.bz2 openshift-d08a872a0392c100e86eed41f5d5372d226538c0.tar.xz openshift-d08a872a0392c100e86eed41f5d5372d226538c0.zip |
Merge pull request #2052 from sdodson/metrics
Metrics improvements
Diffstat (limited to 'roles/openshift_hosted')
-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: > |