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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c874651bafefe714cc364ea3a1e04fd5b1d6d792
4
- data.tar.gz: 18bd7b42abdf24e48fc4445bf6cb145fce1d10b1
3
+ metadata.gz: 07b8be19b7af5ef70598244a3a7eafae39a09ea9
4
+ data.tar.gz: f4c91f77de398b377570441dec1d168d68b3119a
5
5
  SHA512:
6
- metadata.gz: ece7234dde32fdc74920d85805e8d618112ff934d96eeaaf2b7bdc4ae4a4c777e1766783f6e19871dc87ef5af231311128fc9065f4ba39b9200119f9d0e2af90
7
- data.tar.gz: b950df4d7c71ddcbb4e2e01c3ce54bb647e96d3aecd41e908bcd3ae43a714d463190c574c57193e92500078684c4741324527ac39872622ce2e219ce93cd7af3
6
+ metadata.gz: ba61c16b17653edb965f47d54603d4fd4757b50868be917bc28bc7c54ce5bb74dee2a4837fb064ec63d83e53a309f26b20985d8971bcb2013efbc2ba166c1972
7
+ data.tar.gz: 0a2786b2de41f4b42d0266f557d2f7105ef8ff25d1b65dea6ec75c3f00d12535311cf5394c14a872414df9d7637b4866866fa6cb24feddaeeb54ae17b10089c6
data/lib/qb/version.rb CHANGED
@@ -4,7 +4,7 @@ module QB
4
4
 
5
5
  GEM_NAME = 'qb'
6
6
 
7
- VERSION = "0.1.84"
7
+ VERSION = "0.1.85"
8
8
 
9
9
  MIN_ANSIBLE_VERSION = Gem::Version.new '2.1.2'
10
10
 
@@ -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.safe_dump(payload)
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.load(out)
58
+ result = yaml.safe_load(out)
58
59
  except Exception as error:
59
60
  raise AnsibleError('''
60
61
  qb_send failed to parse response:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.84
4
+ version: 0.1.85
5
5
  platform: ruby
6
6
  authors:
7
7
  - nrser