From 017ad1f8bb7f1c38ff87a8d34e4e21557f1c5cf2 Mon Sep 17 00:00:00 2001 From: Mehdi Abaakouk Date: Tue, 22 May 2012 11:19:19 +0200 Subject: [PATCH] Fix import problem when keystone is not present --- plugins/keystone/keystone_stats | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/plugins/keystone/keystone_stats b/plugins/keystone/keystone_stats index 13044043..e8dd1b79 100755 --- a/plugins/keystone/keystone_stats +++ b/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: