From 9d8a824ac9bd27b3f8618107f1606ded24a4bacc Mon Sep 17 00:00:00 2001 From: Madhuri Kumari Date: Tue, 12 May 2015 19:26:46 +0900 Subject: [PATCH] Added support of Kubernetes API in magnum. This patch removes the use of Kubernetes CLI i.e kubectl from magnum and adds the support of Kubernetes API. Change-Id: Ibe7354abba962dde6855225471f468f6a19a41ff Partially-Implements: blueprint python-k8sclient --- magnum/common/pythonk8sclient/client/swagger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/magnum/common/pythonk8sclient/client/swagger.py b/magnum/common/pythonk8sclient/client/swagger.py index 3d9c67d..b672f16 100644 --- a/magnum/common/pythonk8sclient/client/swagger.py +++ b/magnum/common/pythonk8sclient/client/swagger.py @@ -139,7 +139,7 @@ class ApiClient(object): """ if isinstance(obj, type(None)): return None - elif isinstance(obj, (str, int, long, float, bool, file)): + elif isinstance(obj, (unicode, str, int, long, float, bool, file)): return obj elif isinstance(obj, list): return [ApiClient.sanitizeForSerialization(subObj) for subObj in obj]