

def _setup_cfg_agents(self, host_a_active=True, host_b_active=False, host_c_active=False):
    self._register_cfg_agent_states(host_a_active, host_b_active, host_c_active)
    agents = self._list('agents', query_params=('agent_type=%s' % c_const.AGENT_TYPE_CFG))
    agt._agent_dict = {agt['host']: agt for agt in agents['agents']}

dataset/ETHPy150Open openstack/networking-cisco/networking_cisco/tests/unit/cisco/device_manager/test_hosting_device_cfg_agent_scheduler.py HostingDeviceConfigAgentSchedulerTestCaseBase._setup_cfg_agents/VarMisuse@52/98 `self`->`agt`