From f5d67b622d9f1fe3acf3446c88ed4239fe352268 Mon Sep 17 00:00:00 2001 From: Dmytro Dovbii Date: Wed, 5 Aug 2015 15:58:51 +0300 Subject: [PATCH] Fix typo in Kubernetes Cluster app Due to the fact that yaql 0.2 allows to compare the number with a string there are no errors in this check and method works incorrectly allowing to application to use port 22 Change-Id: I4e6be454b9ee3d6f5f594856610c201e741f310d Closes-Bug: #1481748 --- .../KubernetesCluster/package/Classes/KubernetesCluster.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Kubernetes/KubernetesCluster/package/Classes/KubernetesCluster.yaml b/Kubernetes/KubernetesCluster/package/Classes/KubernetesCluster.yaml index 9975cc5..b363331 100644 --- a/Kubernetes/KubernetesCluster/package/Classes/KubernetesCluster.yaml +++ b/Kubernetes/KubernetesCluster/package/Classes/KubernetesCluster.yaml @@ -1,4 +1,4 @@ -# Licensed under the Apache License, Version 2.0 (the "License"); you may +z# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # @@ -425,7 +425,7 @@ Methods: - protocol: Contract: $.string().notNull() Body: - - If: initial != 22 and $._checkIfPortIsNotUsed($initial, $protocol) + - If: $initial != 22 and $._checkIfPortIsNotUsed($initial, $protocol) Then: Return: $initial