'Restrict list operations to the hosts given in restriction.  This is used
to batch serial operations in main playbook code, don\'t use this for other
reasons.'

def restrict_to_hosts(self, restriction):

    if (restriction is None):
        return
    elif (not isinstance(restriction, list)):
        restriction = [restriction]
    self._restriction = [h.name for h in restriction]
