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
This commit is contained in:
parent
83ff9f832f
commit
9d8a824ac9
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user