skip get_ansible_fields when VTN no_container is specified
diff --git a/xos/synchronizers/onos/steps/sync_onosapp.py b/xos/synchronizers/onos/steps/sync_onosapp.py
index 6fc0f62..c55a0d6 100644
--- a/xos/synchronizers/onos/steps/sync_onosapp.py
+++ b/xos/synchronizers/onos/steps/sync_onosapp.py
@@ -9,6 +9,7 @@
import json
from django.db.models import F, Q
from xos.config import Config
+from synchronizers.base.ansible import run_template
from synchronizers.base.syncstep import SyncStep
from synchronizers.base.ansible import run_template_ssh
from synchronizers.base.SyncInstanceUsingAnsible import SyncInstanceUsingAnsible
@@ -69,6 +70,9 @@
def is_no_container(self, o):
return self.get_onos_service(o).no_container
+ def skip_ansible_fields(self, o):
+ return self.is_no_container(o)
+
def get_files_dir(self, o):
if not hasattr(Config(), "observer_steps_dir"):
# make steps_dir mandatory; there's no valid reason for it to not