def address_to(self, m): if isinstance(m, EC2State): return m.private_ipv4 return MachineState.address_to(self, m)