ORM: resource, actions, handlers fixes

This commit is contained in:
Przemyslaw Kaminski 2015-09-14 15:06:02 +02:00
parent 964e519f0d
commit eab859a467

View File

@ -689,12 +689,13 @@ resources_to_run = [
'neutron_agents_ml22',
]
@click.command()
def deploy():
setup_resources()
# run
resources = map(resource.wrap_resource, db.get_list(collection=db.COLLECTIONS.resource))
resources = resource.load_all()
resources = {r.name: r for r in resources}
for name in resources_to_run: