'Reconfigures a VM and sets the properties supplied.'

def _reconfig_vm(self, method, *args, **kwargs):

    vm_ref = args[0]
    vm_mdo = _get_vm_mdo(vm_ref)
    vm_mdo.reconfig(self.client.factory, kwargs.get('spec'))
    task_mdo = create_task(method, 'success')
    return task_mdo.obj
