2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

Fix import problem when keystone is not present

This commit is contained in:
Mehdi Abaakouk 2012-05-22 11:19:19 +02:00
parent e6ece317a6
commit 017ad1f8bb

View File

@ -23,12 +23,8 @@ except ImportError:
else:
succesful_import = True
CONF = config.CONF
stats = ['users', 'tenants']
def print_config():
global states
print 'graph_title Keystone Stats'
@ -86,7 +82,7 @@ def print_values():
print "%s_%s.value %s" % (field, state, value)
def load_conf():
CONF(config_files=[utils.find_config('keystone.conf')])
config.CONF(config_files=[utils.find_config('keystone.conf')])
if __name__ == '__main__':
if len(sys.argv) > 1: