'Returns a list of targets that need to be updated or added remotely'

def _targets_to_put(self):

    remote_targets = self.rule.list_targets()
    return [t for t in self.targets if (t not in remote_targets)]
