- if rec['instantiation'] == 'plc-instantiated': accounts.get(name).ensure_created(rec)
- elif rec['instantiation'] == 'nm-controller': accounts.get(name).ensure_created(rec)
+ slivr = accounts.get(name)
+ logger.verbose("database:sync : %s is %s" %(name,slivr._get_class()))
+ # Make sure we refresh accounts that are running
+ if rec['instantiation'] == 'plc-instantiated': slivr.ensure_created(rec)
+ elif rec['instantiation'] == 'nm-controller': slivr.ensure_created(rec)