diff options
Diffstat (limited to 'anslib/patches/ansible-ghetto-json-ds-dont-parse-numbers.patch')
-rw-r--r-- | anslib/patches/ansible-ghetto-json-ds-dont-parse-numbers.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/anslib/patches/ansible-ghetto-json-ds-dont-parse-numbers.patch b/anslib/patches/ansible-ghetto-json-ds-dont-parse-numbers.patch new file mode 100644 index 0000000..62069d3 --- /dev/null +++ b/anslib/patches/ansible-ghetto-json-ds-dont-parse-numbers.patch @@ -0,0 +1,27 @@ +diff --git a/ghetto_json b/ghetto_json +index ebc3d51..ef936b9 100755 +--- a/ghetto_json ++++ b/ghetto_json +@@ -35,14 +35,14 @@ def main(params_list): + del ref[last_part] + changed = True + else: +- if target.isdigit(): +- target = int(target) +- if target == 'null': +- target = None +- if target == 'false': +- target = False +- if target == 'true': +- target = True ++# if target.isdigit(): ++# target = int(target) ++# if target == 'null': ++# target = None ++# if target == 'false': ++# target = False ++# if target == 'true': ++# target = True + if last_part not in ref or ref[last_part] != target: + ref[last_part] = target + changed = True |