def notifyRemovedEvent(instance, event): """ Node was removed """ #print "Superclass.notifyRemovedEvent" print "ikName:", event.object.ikName print "getObjectId():", event.object.getObjectId() nagiosAdapter = IGenNagios(event.object) if nagiosAdapter is not None: try: nagiosAdapter.nagiosConfigFileRemove() except Exception: # no such file at this point and/or at this moment pass
def notifyRemovedEvent(instance, event): """ Node was removed """ if objEventSupported(event.object): valueChanged = False #print "generators.nagios.notifyRemovedEvent" nagiosAdapter = IGenNagios(event.object) if nagiosAdapter is not None: try: if nagiosAdapter.nagiosConfigFileRemove(): valueChanged = True except Exception: # no such file at this point and/or at this moment pass