Remove accessing cfg.CONF.DATABASE in nec-agent
Fixes bug 1099162 The database configuration was moved to the common DB module. There no longer needs to access database configuration in the plugin specific code. Change-Id: I4b80ea1e84ffa06d0fffa7f8ccdee08a5b77e239
This commit is contained in:
parent
0fa51abd49
commit
ff3e9d8b14
@ -46,7 +46,6 @@ cfg.CONF.register_opts(ofc_opts, "OFC")
|
||||
|
||||
# shortcuts
|
||||
CONF = cfg.CONF
|
||||
DATABASE = cfg.CONF.DATABASE
|
||||
OVS = cfg.CONF.OVS
|
||||
AGENT = cfg.CONF.AGENT
|
||||
OFC = cfg.CONF.OFC
|
||||
|
@ -23,7 +23,6 @@ from quantum.plugins.nec.common import config
|
||||
class ConfigurationTest(unittest.TestCase):
|
||||
|
||||
def test_defaults(self):
|
||||
self.assertEqual('sqlite://', config.DATABASE.sql_connection)
|
||||
self.assertEqual('sqlite://', config.CONF.DATABASE.sql_connection)
|
||||
self.assertEqual(-1, config.CONF.DATABASE.sql_max_retries)
|
||||
self.assertEqual(2, config.CONF.DATABASE.reconnect_interval)
|
||||
|
Loading…
Reference in New Issue
Block a user