Michael Pasternak has uploaded a new change for review.

Change subject: sdk: setupnetworks doesnt work #1008458
......................................................................

sdk: setupnetworks doesnt work #1008458

Change-Id: I45612e50ebcca5dd93d8656a9148c554b6f70d1e
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1008458
Signed-off-by: Michael pasternak <[email protected]>
---
M 
ovirt-engine-sdk-java-codegen/src/main/java/org/ovirt/engine/sdk/codegen/templates/CollectionActionMethodTemplate
M 
ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/HostNICs.java
2 files changed, 6 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine-sdk-java 
refs/changes/75/19275/1

diff --git 
a/ovirt-engine-sdk-java-codegen/src/main/java/org/ovirt/engine/sdk/codegen/templates/CollectionActionMethodTemplate
 
b/ovirt-engine-sdk-java-codegen/src/main/java/org/ovirt/engine/sdk/codegen/templates/CollectionActionMethodTemplate
index c973df3..112761e 100644
--- 
a/ovirt-engine-sdk-java-codegen/src/main/java/org/ovirt/engine/sdk/codegen/templates/CollectionActionMethodTemplate
+++ 
b/ovirt-engine-sdk-java-codegen/src/main/java/org/ovirt/engine/sdk/codegen/templates/CollectionActionMethodTemplate
@@ -13,7 +13,8 @@
      */
     public Action $methodName$(Action action$methodExtraParamsDef$) throws 
ClientProtocolException,
             ServerException, IOException {
-        String url = this.parent.getHref() + SLASH + "$actionName$";
+        String url = this.parent.getHref() + SLASH + getName() +
+                     SLASH +  "$actionName$";
 
         List<Header> headers = new HttpHeaderBuilder()$headersToBuild$
                 .build();
diff --git 
a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/HostNICs.java
 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/HostNICs.java
index ddedb41..6560654 100644
--- 
a/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/HostNICs.java
+++ 
b/ovirt-engine-sdk-java/src/main/java/org/ovirt/engine/sdk/decorators/HostNICs.java
@@ -122,7 +122,8 @@
      */
     public Action setupnetworks(Action action) throws ClientProtocolException,
             ServerException, IOException {
-        String url = this.parent.getHref() + SLASH + "setupnetworks";
+        String url = this.parent.getHref() + SLASH + getName() +
+                     SLASH +  "setupnetworks";
 
         List<Header> headers = new HttpHeaderBuilder()
                 .build();
@@ -160,7 +161,8 @@
      */
     public Action setupnetworks(Action action, String correlationId) throws 
ClientProtocolException,
             ServerException, IOException {
-        String url = this.parent.getHref() + SLASH + "setupnetworks";
+        String url = this.parent.getHref() + SLASH + getName() +
+                     SLASH +  "setupnetworks";
 
         List<Header> headers = new HttpHeaderBuilder()
                 .add("Correlation-Id", correlationId)


-- 
To view, visit http://gerrit.ovirt.org/19275
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I45612e50ebcca5dd93d8656a9148c554b6f70d1e
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine-sdk-java
Gerrit-Branch: master
Gerrit-Owner: Michael Pasternak <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to