summaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorottero <rodrigo.ottero@est.tech>2019-06-06 13:46:11 +0000
committerTimoney, Dan (dt5972) <dtimoney@att.com>2019-06-06 12:58:53 -0400
commit6c2ce9e3eee61fd9ec84594c0284f6d5b94fa925 (patch)
treea057758f064f70fed5655c4f4b589793decd0c07 /components
parentc0cbce93620b7ef1ceaf60d2496e3a84a140fd7e (diff)
Fixing restconf_client.py script0.4.5dublin
The restconf_client.py script uses BlueprintWebClientService to send REST requests to ODL. When the methods of that interface have the type of the returns changed from String to WebClientResponse, the script stopped working. This fix changes the way the response is manipulated, to act upon a WebClientResponse and not on a String Change-Id: I3876c5b27d65058f0b5b77da17f9225fc04779c6 Issue-ID: CCSDK-1384 Signed-off-by: ottero <rodrigo.ottero@est.tech>
Diffstat (limited to 'components')
-rw-r--r--components/model-catalog/proto-definition/pom.xml4
-rw-r--r--components/parent/pom.xml2
-rw-r--r--components/pom.xml2
-rw-r--r--components/scripts/python/ccsdk_restconf/restconf_client.py2
4 files changed, 5 insertions, 5 deletions
diff --git a/components/model-catalog/proto-definition/pom.xml b/components/model-catalog/proto-definition/pom.xml
index 1c73eec85..82504fd5c 100644
--- a/components/model-catalog/proto-definition/pom.xml
+++ b/components/model-catalog/proto-definition/pom.xml
@@ -20,13 +20,13 @@
<parent>
<groupId>org.onap.ccsdk.cds</groupId>
<artifactId>parent</artifactId>
- <version>0.4.4-SNAPSHOT</version>
+ <version>0.4.5-SNAPSHOT</version>
<relativePath>../../../</relativePath>
</parent>
<groupId>org.onap.ccsdk.cds.components</groupId>
<artifactId>proto-definition</artifactId>
- <version>0.4.4-SNAPSHOT</version>
+ <version>0.4.5-SNAPSHOT</version>
<packaging>jar</packaging>
<name>Controller Blueprints Proto Definition</name>
diff --git a/components/parent/pom.xml b/components/parent/pom.xml
index f5dc57323..2a0ae8288 100644
--- a/components/parent/pom.xml
+++ b/components/parent/pom.xml
@@ -21,7 +21,7 @@
<parent>
<groupId>org.onap.ccsdk.cds</groupId>
<artifactId>components</artifactId>
- <version>0.4.4-SNAPSHOT</version>
+ <version>0.4.5-SNAPSHOT</version>
</parent>
<groupId>org.onap.ccsdk.cds.components</groupId>
<artifactId>parent</artifactId>
diff --git a/components/pom.xml b/components/pom.xml
index eba70c2c7..ac34127df 100644
--- a/components/pom.xml
+++ b/components/pom.xml
@@ -19,7 +19,7 @@
<parent>
<groupId>org.onap.ccsdk.cds</groupId>
<artifactId>parent</artifactId>
- <version>0.4.4-SNAPSHOT</version>
+ <version>0.4.5-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>components</artifactId>
diff --git a/components/scripts/python/ccsdk_restconf/restconf_client.py b/components/scripts/python/ccsdk_restconf/restconf_client.py
index 92069c571..6d18b03c5 100644
--- a/components/scripts/python/ccsdk_restconf/restconf_client.py
+++ b/components/scripts/python/ccsdk_restconf/restconf_client.py
@@ -47,7 +47,7 @@ class RestconfClient:
expected_result = '"netconf-node-topology:connection-status":"connected"'
while counter < self.__odl_status_check_limit:
result = web_client_service.exchangeResource("GET", url, "")
- if expected_result in result:
+ if expected_result in result.body:
self.__log.info("NF was mounted successfully on ODL")
return None
sleep(self.__odl_status_check_pause)