commit | e385eea9e994724d61b2e46c3fd573ab43ffa502 | [log] [tgz] |
---|---|---|
author | Scott Baker <smbaker@gmail.com> | Sat Mar 18 09:24:39 2017 -0700 |
committer | Scott Baker <smbaker@gmail.com> | Sat Mar 18 09:24:39 2017 -0700 |
tree | 0aaa3643d5e81bcdf36367d308c6aa8420ad0c59 | |
parent | e963743902cb8ae646b040e41abee3217ada21cb [diff] |
CORD-1053 fix attribute not being saved Change-Id: I5ebb7f777ca1eb71329dc1e1f1b43f1c679448fd
diff --git a/xos/synchronizer/steps/sync_onos_netcfg.py b/xos/synchronizer/steps/sync_onos_netcfg.py index 056c1be..10f1c84 100644 --- a/xos/synchronizer/steps/sync_onos_netcfg.py +++ b/xos/synchronizer/steps/sync_onos_netcfg.py
@@ -52,7 +52,7 @@ ta.save() else: logger.info("saving autogenerated config %s" % name) - ta = TenantAttribute(tenant=tenant, name=name, value=value) + ta = model_accessor.create_obj(TenantAttribute, tenant=tenant, name=name, value=value) ta.save() # This function currently assumes a single Deployment and Site