summaryrefslogtreecommitdiffstats
path: root/anslib/patches/ansible-ghetto-json-ds-dont-parse-numbers.patch
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2018-03-11 20:02:50 +0100
committerSuren A. Chilingaryan <csa@suren.me>2018-03-11 20:02:50 +0100
commit0db2995395d28caf4676ab566085b7c66130b629 (patch)
treedcafcecefc3785388ecddae44f6f5f9a6aae251b /anslib/patches/ansible-ghetto-json-ds-dont-parse-numbers.patch
parentf3c41dd13a0a86382b80d564e9de0d6b06fb1dbf (diff)
downloadands-0db2995395d28caf4676ab566085b7c66130b629.tar.gz
ands-0db2995395d28caf4676ab566085b7c66130b629.tar.bz2
ands-0db2995395d28caf4676ab566085b7c66130b629.tar.xz
ands-0db2995395d28caf4676ab566085b7c66130b629.zip
Add patches also for small modules
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.patch27
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