add Vendor model to select flavor/image at Tenant creation
Change-Id: Ifde87eaa83b0559c83afd7010068dd5465125e37
diff --git a/xos/synchronizer/steps/sync_vsgwutenant.py b/xos/synchronizer/steps/sync_vsgwutenant.py
index 5215a34..331a923 100644
--- a/xos/synchronizer/steps/sync_vsgwutenant.py
+++ b/xos/synchronizer/steps/sync_vsgwutenant.py
@@ -8,7 +8,6 @@
sys.path.insert(0, parentdir)
class SyncVSGWUTenant(SyncInstanceUsingAnsible):
-
provides = [VSGWUTenant]
observes = VSGWUTenant
@@ -23,7 +22,6 @@
super(SyncVSGWUTenant, self).__init__(*args, **kwargs)
def fetch_pending(self, deleted):
-
if (not deleted):
objs = VSGWUTenant.get_tenant_objects().filter(
Q(enacted__lt=F('updated')) | Q(enacted=None), Q(lazy_blocked=False))
@@ -33,8 +31,3 @@
return objs
- def get_extra_attributes(self, o):
- fields = {}
- fields['tenant_message'] = o.tenant_message
- return fields
-
diff --git a/xos/synchronizer/steps/vsgwutenant_playbook.yaml b/xos/synchronizer/steps/vsgwutenant_playbook.yaml
index ede8674..4d6f0dc 100644
--- a/xos/synchronizer/steps/vsgwutenant_playbook.yaml
+++ b/xos/synchronizer/steps/vsgwutenant_playbook.yaml
@@ -1,11 +1,9 @@
---
- hosts: {{ instance_name }}
+ gather_facts: False
connection: ssh
user: ubuntu
- become: yes
- gather_facts: no
+ sudo: yes
tasks:
-
vars:
- - tenant_message: "{{ tenant_message }}"