diff options
author | Andrew Butcher <abutcher@redhat.com> | 2016-04-04 10:42:49 -0400 |
---|---|---|
committer | Andrew Butcher <abutcher@redhat.com> | 2016-04-04 10:42:49 -0400 |
commit | ca2325e9eb9d0b4f8a9a611b01bbc93c87fc12b7 (patch) | |
tree | f9d3442ee8a623cf9404dccdf670cda122f96ea0 /roles/openshift_node | |
parent | 3f80411aa15121295d0ef3099194842a99cd5548 (diff) | |
download | openshift-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')
-rw-r--r-- | roles/openshift_node/tasks/main.yml | 2 |
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 |