stratos-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From im...@apache.org
Subject [2/3] stratos git commit: Fixing INTERNAL parameter issue in python agent
Date Fri, 26 Dec 2014 11:06:51 GMT
Fixing INTERNAL parameter issue in python agent


Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/12457b52
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/12457b52
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/12457b52

Branch: refs/heads/master
Commit: 12457b52db242f1b0cae75860867857efd4f9860
Parents: 170a84e
Author: Imesh Gunaratne <imesh@apache.org>
Authored: Fri Dec 26 16:35:44 2014 +0530
Committer: Imesh Gunaratne <imesh@apache.org>
Committed: Fri Dec 26 16:35:44 2014 +0530

----------------------------------------------------------------------
 .../cartridgeagent/modules/config/cartridgeagentconfiguration.py | 4 ++--
 .../cartridgeagent/modules/util/cartridgeagentconstants.py       | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/12457b52/components/org.apache.stratos.python.cartridge.agent/cartridgeagent/cartridgeagent/modules/config/cartridgeagentconfiguration.py
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.python.cartridge.agent/cartridgeagent/cartridgeagent/modules/config/cartridgeagentconfiguration.py
b/components/org.apache.stratos.python.cartridge.agent/cartridgeagent/cartridgeagent/modules/config/cartridgeagentconfiguration.py
index 19ca458..21c3575 100644
--- a/components/org.apache.stratos.python.cartridge.agent/cartridgeagent/cartridgeagent/modules/config/cartridgeagentconfiguration.py
+++ b/components/org.apache.stratos.python.cartridge.agent/cartridgeagent/cartridgeagent/modules/config/cartridgeagentconfiguration.py
@@ -165,8 +165,8 @@ class CartridgeAgentConfiguration:
                     cartridgeagentconstants.LISTEN_ADDRESS, False)
 
                 try:
-                    int_repo_str = self.read_property(cartridgeagentconstants.PROVIDER)
-                    self.is_internal_repo = True if str(int_repo_str).strip().lower() ==
cartridgeagentconstants.INTERNAL else False
+                    int_repo_str = self.read_property(cartridgeagentconstants.INTERNAL)
+                    self.is_internal_repo = True if str(int_repo_str).strip().lower() ==
"true" else False
                 except ParameterNotFoundException:
                     self.log.info(" INTERNAL payload parameter is not found")
                     self.is_internal_repo = False

http://git-wip-us.apache.org/repos/asf/stratos/blob/12457b52/components/org.apache.stratos.python.cartridge.agent/cartridgeagent/cartridgeagent/modules/util/cartridgeagentconstants.py
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.python.cartridge.agent/cartridgeagent/cartridgeagent/modules/util/cartridgeagentconstants.py
b/components/org.apache.stratos.python.cartridge.agent/cartridgeagent/cartridgeagent/modules/util/cartridgeagentconstants.py
index c4bd9c6..68ef5fb 100644
--- a/components/org.apache.stratos.python.cartridge.agent/cartridgeagent/cartridgeagent/modules/util/cartridgeagentconstants.py
+++ b/components/org.apache.stratos.python.cartridge.agent/cartridgeagent/cartridgeagent/modules/util/cartridgeagentconstants.py
@@ -55,7 +55,7 @@ AUTO_COMMIT = "auto.commit"
 AUTO_CHECKOUT = "auto.checkout"
 LISTEN_ADDRESS = "listen.address"
 PROVIDER = "PROVIDER"
-INTERNAL = "internal"
+INTERNAL = "INTERNAL"
 LB_PRIVATE_IP = "lb.private.ip"
 LB_PUBLIC_IP = "lb.public.ip"
 


Mime
View raw message