def undo(self):
    if (self.instance == self.infra.instances.all()[0]):
        DisableInfraMonitoring(self.instance).do()
def undo(self):
    if (self.instance == self.infra.instances.all()[0]):
        DisableInfraMonitoring(self.instance).do()