

def addPresenceInfo(self, stateGrp, name, ip, port):
    self.assertIn(stateGrp, ('alloweds', 'aliveds', 'reapeds'))
    group = self.store.fetch('.salt.var.presence.{0}'.format(port))
    if (group.value is None):
        group.value = odict()
    remote = Stack()
    remote.ha = (ip, port)
    group.value[name] = remote

dataset/ETHPy150Open saltstack/salt/salt/daemons/test/test_presence.py PresenterTestCase.addPresenceInfo/VarMisuse@45/74 `stateGrp`->`port`