diff options
author | Kenny Woodson <kwoodson@redhat.com> | 2017-08-25 17:47:58 -0400 |
---|---|---|
committer | Kenny Woodson <kwoodson@redhat.com> | 2017-08-25 17:47:58 -0400 |
commit | c527ad3ceb87ffaff0abdca3e39f8b6c7faeea5b (patch) | |
tree | fe39431d4cf057313af51edbd9077b32372f9d7c | |
parent | cc477558889b4a9e2595418c676a03e98cbfe20e (diff) | |
download | openshift-c527ad3ceb87ffaff0abdca3e39f8b6c7faeea5b.tar.gz openshift-c527ad3ceb87ffaff0abdca3e39f8b6c7faeea5b.tar.bz2 openshift-c527ad3ceb87ffaff0abdca3e39f8b6c7faeea5b.tar.xz openshift-c527ad3ceb87ffaff0abdca3e39f8b6c7faeea5b.zip |
Removing deprecation warnings for when conditions.
-rw-r--r-- | roles/openshift_aws_ami_copy/tasks/main.yml | 2 | ||||
-rw-r--r-- | roles/openshift_aws_iam_kms/tasks/main.yml | 2 |
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 }}" |