'Resize requested LUN.
:return: True if LUN was actually re-sized, false otherwise.
:rtype: bool'

def resize_lun(self):

    path = ('/vol/%s/%s' % (self.flexvol_name, self.name))
    lun_resize = netapp_utils.zapi.NaElement.create_node_with_children('lun-resize', **{'path': path, 'size': str(self.size), 'force': str(self.force_resize)})
    try:
        self.server.invoke_successfully(lun_resize, enable_tunneling=True)
    except netapp_utils.zapi.NaApiError as e:
        if (to_native(e.code) == '9042'):
            return False
        else:
            self.module.fail_json(msg=('Error    resizing    lun    %s:    %s' % (path, to_native(e))), exception=traceback.format_exc())
    return True
