summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2017-08-25 17:47:58 -0400
committerKenny Woodson <kwoodson@redhat.com>2017-08-25 17:47:58 -0400
commitc527ad3ceb87ffaff0abdca3e39f8b6c7faeea5b (patch)
treefe39431d4cf057313af51edbd9077b32372f9d7c /roles
parentcc477558889b4a9e2595418c676a03e98cbfe20e (diff)
downloadopenshift-c527ad3ceb87ffaff0abdca3e39f8b6c7faeea5b.tar.gz
openshift-c527ad3ceb87ffaff0abdca3e39f8b6c7faeea5b.tar.bz2
openshift-c527ad3ceb87ffaff0abdca3e39f8b6c7faeea5b.tar.xz
openshift-c527ad3ceb87ffaff0abdca3e39f8b6c7faeea5b.zip
Removing deprecation warnings for when conditions.
Diffstat (limited to 'roles')
-rw-r--r--roles/openshift_aws_ami_copy/tasks/main.yml2
-rw-r--r--roles/openshift_aws_iam_kms/tasks/main.yml2
2 files changed, 2 insertions, 2 deletions
diff --git a/roles/openshift_aws_ami_copy/tasks/main.yml b/roles/openshift_aws_ami_copy/tasks/main.yml
index 15444c8d0..bcccd4042 100644
--- a/roles/openshift_aws_ami_copy/tasks/main.yml
+++ b/roles/openshift_aws_ami_copy/tasks/main.yml
@@ -1,7 +1,7 @@
---
- fail:
msg: "{{ item }} needs to be defined"
- when: "{{ item }} is not defined"
+ when: item is not defined
with_items:
- r_openshift_aws_ami_copy_src_ami
- r_openshift_aws_ami_copy_name
diff --git a/roles/openshift_aws_iam_kms/tasks/main.yml b/roles/openshift_aws_iam_kms/tasks/main.yml
index b541b466c..32aac2666 100644
--- a/roles/openshift_aws_iam_kms/tasks/main.yml
+++ b/roles/openshift_aws_iam_kms/tasks/main.yml
@@ -1,7 +1,7 @@
---
- fail:
msg: "{{ item.name }} needs to be defined."
- when: "{{ item.cond }}"
+ when: item.cond | bool
with_items:
- name: "{{ r_openshift_aws_iam_kms_alias }}"
cond: "{{ r_openshift_aws_iam_kms_alias is undefined }}"