fix ansible failure if no config files in ONOS App
diff --git a/xos/observers/onos/steps/sync_onosapp.yaml b/xos/observers/onos/steps/sync_onosapp.yaml
index 455d8c1..ad3718c 100644
--- a/xos/observers/onos/steps/sync_onosapp.yaml
+++ b/xos/observers/onos/steps/sync_onosapp.yaml
@@ -15,6 +15,7 @@
path=/home/ubuntu/{{ appname }}/
state=directory
+{% if config_fns %}
- name: Copy over configuration files
copy:
src={{ files_dir }}/{{ '{{' }} item {{ '}}' }}
@@ -35,6 +36,7 @@
{% for config_fn in config_fns %}
- {{ config_fn }}
{% endfor %}
+{% endif %}
# Don't know how to check for this condition, just wait
- name: Wait for ONOS to install the apps