[PATCH 09/12] test: fixing type conversion bug in test-session

Tomasz Bursztyka tomasz.bursztyka at linux.intel.com
Wed Feb 8 06:13:08 PST 2012


---
 test/test-session |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/test/test-session b/test/test-session
index 6c7fa5c..dcb372f 100755
--- a/test/test-session
+++ b/test/test-session
@@ -112,8 +112,11 @@ class SessionApplication(dbus.service.Object):
 		del self.sessions[session_name]
 
 	def type_convert(self, key, value):
-		if key in [ "AllowedBearers", "RoamingPolicy" ]:
+		if key in [ "AllowedBearers" ]:
 			return value
+		elif key in [ "RoamingPolicy" ]:
+			if len(value) > 0:
+				return value[0]
 		elif key in [ "Priority", "AvoidHandover",
 			      "StayConnected", "EmergencyCall" ]:
 			flag = str(value[0]).strip().lower()
-- 
1.7.8.4




More information about the connman mailing list