def action(): """ Performs a sync from the pool's list of flavors to the appliance. Cron: Every 15 minutes. """ # get the appliance for api token (not required, but sent if we have it) appliance = db.session.query(Appliance).first() # sync the flavors flavors = Flavors() flavors.sync() flavors.sync_from_openstack(appliance)