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