diff --git a/monkey/monkey_island/cc/models/machine.py b/monkey/monkey_island/cc/models/machine.py index 99d4ae5eb..ece877b9e 100644 --- a/monkey/monkey_island/cc/models/machine.py +++ b/monkey/monkey_island/cc/models/machine.py @@ -38,3 +38,6 @@ class Machine(MutableInfectionMonkeyBaseModel): _make_immutable_sequence = validator("network_interfaces", pre=True, allow_reuse=True)( make_immutable_sequence ) + + def __hash__(self): + return self.id