Permalink
Browse files

Fix import problem when keystone is not present

  • Loading branch information...
1 parent e6ece31 commit 017ad1f8bb7f1c38ff87a8d34e4e21557f1c5cf2 @sileht sileht committed May 22, 2012
Showing with 1 addition and 5 deletions.
  1. +1 −5 plugins/keystone/keystone_stats
View
6 plugins/keystone/keystone_stats
@@ -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:

0 comments on commit 017ad1f

Please sign in to comment.