ironic-prometheus-exporter/verify_installation.py
Iury Gregory Melo Ferreira 8164b51fec Installation guide
- README updated with the steps to install
- script to  verify  if the driver is installed
2019-03-28 11:00:11 +01:00

14 lines
370 B
Python

import stevedore
driver_list = stevedore.ExtensionManager(
'oslo.messaging.notify.drivers',
invoke_on_load=False,
propagate_map_exceptions=True
)
if 'prometheus_exporter' in driver_list.names():
print('prometheus_exporter driver found.')
else:
print('prometheus_exporter driver not found.')
print('Available drivers: %s' % driver_list.names())