[CORD-2874]
Fix deprecation warnings raised by Ansible 2.5
Change-Id: Icb607d267af2771b046b46399ce5f0d182f629ab
diff --git a/roles/juju-compute-setup/tasks/main.yml b/roles/juju-compute-setup/tasks/main.yml
index dff82cd..d24fe0e 100644
--- a/roles/juju-compute-setup/tasks/main.yml
+++ b/roles/juju-compute-setup/tasks/main.yml
@@ -1,4 +1,4 @@
-
+---
# Copyright 2017-present Open Networking Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -13,8 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-
----
# roles/juju-compute-setup/main/tasks.yml
# Code for this is in library/juju_facts.py
@@ -77,7 +75,7 @@
- name: Verify that the nodes appear in nova
action: shell bash -c "source /opt/cord_profile/admin-openrc.sh; nova hypervisor-list | grep '{{ item }}'"
register: result
- until: result | success
+ until: result is success
retries: 20
delay: 15
with_items: "{{ groups['compute'] }}"