qb 0.1.84 → 0.1.85
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/qb/version.rb +1 -1
- data/plugins/filter_plugins/ruby_interop.py +3 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07b8be19b7af5ef70598244a3a7eafae39a09ea9
|
4
|
+
data.tar.gz: f4c91f77de398b377570441dec1d168d68b3119a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba61c16b17653edb965f47d54603d4fd4757b50868be917bc28bc7c54ce5bb74dee2a4837fb064ec63d83e53a309f26b20985d8971bcb2013efbc2ba166c1972
|
7
|
+
data.tar.gz: 0a2786b2de41f4b42d0266f557d2f7105ef8ff25d1b65dea6ec75c3f00d12535311cf5394c14a872414df9d7637b4866866fa6cb24feddaeeb54ae17b10089c6
|
data/lib/qb/version.rb
CHANGED
@@ -5,6 +5,7 @@ from ansible.errors import AnsibleError
|
|
5
5
|
|
6
6
|
import subprocess
|
7
7
|
import yaml
|
8
|
+
from ansible.parsing.yaml.dumper import AnsibleDumper
|
8
9
|
|
9
10
|
def qb_send(data, method, *args, **kwds):
|
10
11
|
'''
|
@@ -18,7 +19,7 @@ def qb_send(data, method, *args, **kwds):
|
|
18
19
|
'kwds': kwds,
|
19
20
|
}
|
20
21
|
|
21
|
-
input = yaml.
|
22
|
+
input = yaml.dump(payload, Dumper=AnsibleDumper)
|
22
23
|
|
23
24
|
ruby_code = '''
|
24
25
|
# init bundler in dev env
|
@@ -54,7 +55,7 @@ def qb_send(data, method, *args, **kwds):
|
|
54
55
|
''' % (err))
|
55
56
|
|
56
57
|
try:
|
57
|
-
result = yaml.
|
58
|
+
result = yaml.safe_load(out)
|
58
59
|
except Exception as error:
|
59
60
|
raise AnsibleError('''
|
60
61
|
qb_send failed to parse response:
|