File 0001-Deserialize-values-correctly-for-Magnum-k8s-monitor.patch of Package python-k8sclient
From 89a4930f07e11ca7635fcfc6a0456671e25ed208 Mon Sep 17 00:00:00 2001
From: Michal Jura <mjura@suse.com>
Date: Wed, 28 Dec 2016 13:40:27 +0100
Subject: [PATCH] Deserialize values correctly for Magnum k8s_monitor
We have to switch from 'object' to 'str' for:
- 'capacity' and 'allocatable' in class V1NodeStatus,
- 'limits' and 'requests' in class V1ResourceRequirements
Change-Id: I23086e4c187cdd3a629e33212de2043b185aa34b
Closes-Bug: #1595373
---
diff --git a/k8sclient/client/models/v1_node_status.py b/k8sclient/client/models/v1_node_status.py
index a551db8..7e13d2e 100644
--- a/k8sclient/client/models/v1_node_status.py
+++ b/k8sclient/client/models/v1_node_status.py
@@ -35,8 +35,8 @@
and the value is json key in definition.
"""
self.swagger_types = {
- 'capacity': 'object',
- 'allocatable': 'object',
+ 'capacity': 'str',
+ 'allocatable': 'str',
'phase': 'str',
'conditions': 'list[V1NodeCondition]',
'addresses': 'list[V1NodeAddress]',
diff --git a/k8sclient/client/models/v1_resource_requirements.py b/k8sclient/client/models/v1_resource_requirements.py
index 226a25b..11f2ff6 100644
--- a/k8sclient/client/models/v1_resource_requirements.py
+++ b/k8sclient/client/models/v1_resource_requirements.py
@@ -35,8 +35,8 @@
and the value is json key in definition.
"""
self.swagger_types = {
- 'limits': 'object',
- 'requests': 'object'
+ 'limits': 'str',
+ 'requests': 'str'
}
self.attribute_map = {