'Create new ``Deployment`` based on this one which replaces existing
``Node`` with updated version, or just adds given ``Node`` if no
existing ones have matching hostname.
:param Node node: An update for ``Node`` with same hostname in
this ``Deployment``.
:return Deployment: Updated with new ``Node``.'

def update_node(self, node):

    return self.transform(['nodes', node.uuid], node)
