From cf3d680050a102226c6184c2d29c24d52c41adf7 Mon Sep 17 00:00:00 2001 From: Fabian von Feilitzsch Date: Tue, 9 May 2017 13:16:00 -0400 Subject: [PATCH] Make sure property path is camelCased when building request body --- openshift/helper/ansible.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openshift/helper/ansible.py b/openshift/helper/ansible.py index 8ae31e39..dd8b65df 100644 --- a/openshift/helper/ansible.py +++ b/openshift/helper/ansible.py @@ -271,7 +271,7 @@ def __add_path_to_dict(self, request_dict, param_name, param_value, path): local_path = copy.copy(path) spec = self.find_arg_spec(param_name) while len(local_path): - p = self.__property_name_to_camel(param_name, local_path.pop(0)) + p = string_utils.snake_case_to_camel(local_path.pop(0), upper_case_first=False) if len(local_path): if request_dict.get(p, None) is None: request_dict[p] = {}