mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
Fix import problem when keystone is not present
This commit is contained in:
parent
e6ece317a6
commit
017ad1f8bb
1 changed files with 1 additions and 5 deletions
|
@ -23,12 +23,8 @@ except ImportError:
|
||||||
else:
|
else:
|
||||||
succesful_import = True
|
succesful_import = True
|
||||||
|
|
||||||
|
|
||||||
CONF = config.CONF
|
|
||||||
|
|
||||||
stats = ['users', 'tenants']
|
stats = ['users', 'tenants']
|
||||||
|
|
||||||
|
|
||||||
def print_config():
|
def print_config():
|
||||||
global states
|
global states
|
||||||
print 'graph_title Keystone Stats'
|
print 'graph_title Keystone Stats'
|
||||||
|
@ -86,7 +82,7 @@ def print_values():
|
||||||
print "%s_%s.value %s" % (field, state, value)
|
print "%s_%s.value %s" % (field, state, value)
|
||||||
|
|
||||||
def load_conf():
|
def load_conf():
|
||||||
CONF(config_files=[utils.find_config('keystone.conf')])
|
config.CONF(config_files=[utils.find_config('keystone.conf')])
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
if len(sys.argv) > 1:
|
if len(sys.argv) > 1:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue