Skip to content

Commit

Permalink
Issue #61: Fixing codacy error
Browse files Browse the repository at this point in the history
  • Loading branch information
jdewinne committed Jul 11, 2017
1 parent 60d4f75 commit 751d4fc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions src/main/resources/xlr_xldeploy/LocalCLI.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#

#
# THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS
# FOR A PARTICULAR PURPOSE. THIS CODE AND INFORMATION ARE NOT SUPPORTED BY XEBIALABS.
#
import java.lang.System as System
import java.lang.String as String

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/xlr_xldeploy/XLDeployClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ def update_ci_property(self, ci_id, ci_property, property_value):
if self.check_ci_exist(ci_id):
ci = self.get_ci(ci_id, 'json')
data = json.loads(ci)
if type(data[ci_property]) is list:
if isinstance(data[ci_property], list):
data[ci_property] = eval(property_value)
else:
data[ci_property] = property_value
Expand Down

0 comments on commit 751d4fc

Please sign in to comment.