Switch from FLAGS to CONF in tests

Use the global CONF variable instead of FLAGS. This is purely a cleanup
since FLAGS is already just another reference to CONF.

We leave the nova.flags imports until a later cleanup commit since
removing them may cause unpredictable problems due to config options not
being registered.

Change-Id: Ic0168188dfe214fc81af04c8a9644d2d9f31600d
This commit is contained in:
Mark McLoughlin
2012-11-04 21:32:53 +00:00
parent b90d5e73e6
commit 000226c87f
17 changed files with 142 additions and 153 deletions

View File

@@ -30,8 +30,6 @@ from nova.openstack.common import timeutils
from nova import test
from nova import utils
FLAGS = flags.FLAGS
CONF = config.CONF
CONF.import_opt('reserved_host_memory_mb', 'nova.compute.resource_tracker')
CONF.import_opt('reserved_host_disk_mb', 'nova.compute.resource_tracker')