summaryrefslogtreecommitdiffstats
path: root/roles/openshift_node/tasks
diff options
context:
space:
mode:
authorAndrew Butcher <abutcher@redhat.com>2016-04-04 10:42:49 -0400
committerAndrew Butcher <abutcher@redhat.com>2016-04-04 10:42:49 -0400
commitca2325e9eb9d0b4f8a9a611b01bbc93c87fc12b7 (patch)
treef9d3442ee8a623cf9404dccdf670cda122f96ea0 /roles/openshift_node/tasks
parent3f80411aa15121295d0ef3099194842a99cd5548 (diff)
downloadopenshift-ca2325e9eb9d0b4f8a9a611b01bbc93c87fc12b7.tar.gz
openshift-ca2325e9eb9d0b4f8a9a611b01bbc93c87fc12b7.tar.bz2
openshift-ca2325e9eb9d0b4f8a9a611b01bbc93c87fc12b7.tar.xz
openshift-ca2325e9eb9d0b4f8a9a611b01bbc93c87fc12b7.zip
Check for kind in cloudprovider facts prior to accessing.
Diffstat (limited to 'roles/openshift_node/tasks')
-rw-r--r--roles/openshift_node/tasks/main.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/openshift_node/tasks/main.yml b/roles/openshift_node/tasks/main.yml
index 80b3e710d..eca4848c1 100644
--- a/roles/openshift_node/tasks/main.yml
+++ b/roles/openshift_node/tasks/main.yml
@@ -92,7 +92,7 @@
line: "AWS_ACCESS_KEY_ID={{ openshift.cloudprovider.aws.access_key }}"
- regex: '^AWS_SECRET_ACCESS_KEY='
line: "AWS_SECRET_ACCESS_KEY={{ openshift.cloudprovider.aws.secret_key }}"
- when: "'cloudprovider' in openshift and 'aws' in openshift.cloudprovider and openshift.cloudprovider.kind == 'aws' and 'access_key' in openshift.cloudprovider.aws and 'secret_key' in openshift.cloudprovider.aws"
+ when: "'cloudprovider' in openshift and 'aws' in openshift.cloudprovider and 'kind' in openshift.cloudprovider and openshift.cloudprovider.kind == 'aws' and 'access_key' in openshift.cloudprovider.aws and 'secret_key' in openshift.cloudprovider.aws"
notify:
- restart node