code: def is_enable_action_dependent(self, hosts, services):
          enable_action = False
          for (dep_id, status, _, _) in self.act_depend_of:
              if 'n' in status:
                  enable_action = True
              else:
                  if dep_id in hosts:
                      dep = hosts[dep_id]
                  else:
                      dep = services[dep_id]
                  p_is_down = False
                  dep_match = [dep.is_state(stat) for stat in status]
                  if True in dep_match:
                      p_is_down = True
                  if not p_is_down:
                      enable_action = True
          return enable_action