

def move_object(self, container, obj, new_container, new_obj_name=None, new_reference=False, content_type=None):
    "\n        Works just like copy_object, except that the source object is deleted\n        after a successful copy.\n\n        You can optionally change the content_type of the object by supplying\n        that in the 'content_type' parameter.\n\n        NOTE: any references to the original object will no longer be valid;\n        you will have to get a reference to the new object by passing True for\n        the 'new_reference' parameter. When this is True, a reference to the\n        newly moved object is returned. Otherwise, the etag for the moved\n        object is returned.\n        "
    new_obj_etag = self.copy_object(container, obj, new_container, new_obj_name=new_obj_name, content_type=content_type)
    if (not new_obj_etag):
        return
    self.delete_object(container, nm)
    if new_reference:
        nm = (new_obj_name or utils.get_name(obj))
        return self.get_object(new_container, nm)
    return new_obj_etag

dataset/ETHPy150Open rackspace/pyrax/pyrax/object_storage.py ContainerManager.move_object/VarMisuse@68/316 `obj`->`nm`