Michael Pasternak has posted comments on this change.
Change subject: restapi: Attach Disk To VM - Return Disk In Response
......................................................................
Patch Set 1: I would prefer that you didn't submit this
(2 inline comments)
....................................................
File
backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendVmDisksResource.java
Line 52: @Override
Line 53: public Response add(Disk disk) {
Line 54: validateEnums(Disk.class, disk);
Line 55: if (disk.isSetId()) {
Line 56: return
Response.fromResponse(attachDiskToVm(disk)).entity(getDeviceSubResource(disk.getId()).get()).build();
it should be treated as regular CREATE with resolver callback
Line 57: }else {
Line 58: return super.add(disk);
Line 59: }
Line 60: }
....................................................
Commit Message
Line 3: AuthorDate: 2012-10-03 16:20:20 +0200
Line 4: Commit: Ori Liel <[email protected]>
Line 5: CommitDate: 2012-10-03 16:20:25 +0200
Line 6:
Line 7: restapi: Attach Disk To VM - Return Disk In Response
where is BZ info?
Line 8:
Line 9: Change-Id: I1a50077886734f73842141262f5c338979dcae5c
--
To view, visit http://gerrit.ovirt.org/8335
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I1a50077886734f73842141262f5c338979dcae5c
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Ori Liel <[email protected]>
Gerrit-Reviewer: Michael Pasternak <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches