smart_proxy_salt 2.1.2 → 2.1.3

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: ae002572f0ac00e84d1160ab218148c72dd8dd73
4
- data.tar.gz: 3b5e64352eb395d2f084e88f37e3e5d44e2808c8
3
+ metadata.gz: d15fe2508ee99c58a798d2cf39d04dd6fc749cd8
4
+ data.tar.gz: 78ebaa24b7338afd2a30526c8431bd52f81fa076
5
5
  SHA512:
6
- metadata.gz: 91bcf32a97e000a3e85b4a3be6c5a294e0ff2ccfb6becc54c0bbc89153c2862d11d51386f6bce85cfbcec8796d71770e349f32d76ece1d907a3a3dd4b5a9035a
7
- data.tar.gz: c2e7ffa7f7cc0689be149ccb123801e9c6e1831d38f35add3aa3e80aa3135436295135d517b37bd2f8e3c5b1f8ccdc3f2fdd9d5a2d7d59a73884b5667289b236
6
+ metadata.gz: 32e445e92f05873b8a2bf12dfa75f2e36897ebef71bdefd72f93fde95732a1e358c067014822c158d108e2da2e391048842fa859dda3541e9b4959f756940ede
7
+ data.tar.gz: 9a6051bf090fbec06ac024047cf44dc1ee58aaf3c2c7864d56a444fbada24a8fb8c2eec498978323f0033a440ce2050839890add632878e6f3ccf39012c4d365
@@ -1,5 +1,5 @@
1
1
  module Proxy
2
2
  module Salt
3
- VERSION = '2.1.2'
3
+ VERSION = '2.1.3'
4
4
  end
5
5
  end
@@ -52,7 +52,7 @@ def write_last_uploaded(last_uploaded):
52
52
  f.write(last_uploaded)
53
53
 
54
54
 
55
- def run(function, argument={}):
55
+ def run(function, argument=[]):
56
56
  __opts__ = salt.config.master_config(
57
57
  os.environ.get('SALT_MASTER_CONFIG', '/etc/salt/master'))
58
58
 
@@ -62,7 +62,7 @@ def run(function, argument={}):
62
62
  sys.stdout = f
63
63
  ret = runner.cmd(function, argument)
64
64
  sys.stdout = stdout_bak
65
- return ret
65
+ return ret['data'] if 'data' in ret else ret
66
66
 
67
67
 
68
68
  def jobs_to_upload():
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smart_proxy_salt
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Moll
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-05-10 00:00:00.000000000 Z
12
+ date: 2015-06-25 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: SaltStack Plug-In for Foreman's Smart Proxy
15
15
  email: foreman-dev@googlegroups.com