Fix usage of mutable object as default value

Commit 0a300a2277a583fe28b00db2571982928c752554 added a bad parameter.
Please see http://docs.python-guide.org/en/latest/writing/gotchas/

Change-Id: I0550c4c86774f8761287c596350f7461fec05fe4
This commit is contained in:
Gary Kotton 2015-10-29 06:48:48 -07:00
parent 845ae1898b
commit 6af52340ff

View File

@ -120,7 +120,9 @@ class OVSAgentTestFramework(base.BaseOVSLinuxTestCase):
agent.sg_agent = mock.Mock()
return agent
def start_agent(self, agent, unplug_ports=[]):
def start_agent(self, agent, unplug_ports=None):
if unplug_ports is None:
unplug_ports = []
self.setup_agent_rpc_mocks(agent, unplug_ports)
polling_manager = polling.InterfacePollingMinimizer()
self.addCleanup(polling_manager.stop)