From 271f5cc09a392ee4c692bd2459ab6f4bc0b0b7d1 Mon Sep 17 00:00:00 2001 From: Joris De Winne Date: Fri, 13 Jan 2017 12:04:09 -0800 Subject: [PATCH] Issue #32: Switching to findall --- .travis.yml | 2 +- build.gradle | 2 +- src/main/resources/xldeploy/XLDeployClient.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 288fdc0..8f5a14e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,7 +8,7 @@ deploy: provider: releases api_key: secure: aoVXZyLOBmB4Q2lLKLaqEN8zcqN3K3/3agRBA1znM1PLeqXSE3CwQe6sHkX6BrfMoDDtjqeepDMgJ9TsqJFq+lPY+HuVFzOqGlrWlIZHBUKI3hmfjgM/61CkdK2eBO42Ym4tqCQ4L1Tp42fcrB6M/a/0TGI5ENW2bJk8+ofRT8M= - file: build/libs/xlr-xldeploy-plugin-2.7.1.jar + file: build/libs/xlr-xldeploy-plugin-2.8.0.jar skip_cleanup: true on: all_branches: true diff --git a/build.gradle b/build.gradle index b0bcbab..b8c2d47 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ plugins { id "com.xebialabs.xl.docker" version "1.0.0" } -version = "2.7.1" +version = "2.8.0" apply plugin: 'java' apply plugin: 'idea' diff --git a/src/main/resources/xldeploy/XLDeployClient.py b/src/main/resources/xldeploy/XLDeployClient.py index 2615af5..e72442c 100644 --- a/src/main/resources/xldeploy/XLDeployClient.py +++ b/src/main/resources/xldeploy/XLDeployClient.py @@ -55,7 +55,7 @@ def override_deployed_properties(deployment_xml, deployed_properties): if deployed_properties: deployeds_properties_dict = dict(ast.literal_eval(deployed_properties)) for key in deployeds_properties_dict: - pkey_xml = root.find(key) + pkey_xml = root.findall(key) pkey_xml.text = deployeds_properties_dict[key] return ET.tostring(root)