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:
parent
e6ece317a6
commit
017ad1f8bb
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user