Skip to content
Snippets Groups Projects
Commit e8b1fd47 authored by Alberto Colla's avatar Alberto Colla
Browse files

gnocchi-available hook.

parent b5f8137d
No related branches found
No related tags found
No related merge requests found
......@@ -444,6 +444,16 @@ def update_status():
log('Updating status.')
# TODO. Attardi
@hooks.hook('gnocchi-available')
def gnocchi_available():
"""Create Ceilometer resources in Gnocchi. Gnocchi should be running by this stage:
ceilometer-upgrade --skip-metering-database
"""
from ceilometer import gnocchi_client
gnocchi_client.upgrade_resource_types() #(conf)
if __name__ == '__main__':
try:
hooks.execute(sys.argv)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment