foreman_salt 5.0.0 → 5.0.1

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: f9868208c4e4fcafc333d26d1328d26fda1aedbe
4
- data.tar.gz: 5123aa03c84c55a2b2bcf7781bd20a4c8f8c0bc7
3
+ metadata.gz: db1aa26e9f75b7b0673e373a1bfb7b7c6a1e7333
4
+ data.tar.gz: cb9ea975a7a1ea549cf2f6006a3ae88ce49f1361
5
5
  SHA512:
6
- metadata.gz: f3eb26a7c80cfd36770eeaa6fd758641e24942940964c4a97d2e516ecd3e80f59b7806f1828cea71dc3abee4623f30e6056e66df97a6143f12e67087e23244ba
7
- data.tar.gz: 2912f3b5f10639dfd156bc5b7b3110fcc18eb732b49c04f1b4e036f2fc32c75916ad739d08456423c8c846c71486651aa73348f401a22e5e87bf49c52c64917e
6
+ metadata.gz: af94628121430ff29a6cefaf22cd0e882d6b3f5ff80d412b8c9ce890c6338f74983f71f251716f8012012ae3c13d1e8dd1e0fd6382f29638ad8af10f61698e34
7
+ data.tar.gz: 827eda4f3ef2e520e782e4f0d69b01d35bb4a8e0494e0cd93de351eba54ca373734d64d763d1685ec37ede0c397b2736c306e62db7ae5e06bf4bd256914a3cd4
@@ -57,7 +57,7 @@ module ForemanSalt
57
57
  end
58
58
 
59
59
  def fact_names
60
- @fact_names ||= fact_name_class.maximum(:id, :group => 'name')
60
+ @fact_names ||= fact_name_class.group(:name).maximum(:id)
61
61
  end
62
62
 
63
63
  # if the host does not exists yet, we don't have an host_id to use the fact_values table.
@@ -114,6 +114,10 @@ module ForemanSalt
114
114
  else
115
115
  result['duration']
116
116
  end
117
+ # Convert duration from milliseconds to seconds
118
+ if duration.is_a? Float
119
+ duration = duration / 1000
120
+ end
117
121
 
118
122
  time[resource] = duration || 0
119
123
  end
@@ -1,3 +1,3 @@
1
1
  module ForemanSalt
2
- VERSION = '5.0.0'
2
+ VERSION = '5.0.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_salt
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0
4
+ version: 5.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Benjamin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-27 00:00:00.000000000 Z
11
+ date: 2016-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deface
@@ -180,27 +180,27 @@ required_rubygems_version: !ruby/object:Gem::Requirement
180
180
  version: '0'
181
181
  requirements: []
182
182
  rubyforge_project:
183
- rubygems_version: 2.4.8
183
+ rubygems_version: 2.5.1
184
184
  signing_key:
185
185
  specification_version: 4
186
186
  summary: Foreman Plug-in for Salt
187
187
  test_files:
188
188
  - test/factories/foreman_salt_factories.rb
189
+ - test/functional/api/v2/salt_autosign_controller_test.rb
190
+ - test/functional/api/v2/salt_environments_controller_test.rb
191
+ - test/functional/api/v2/salt_keys_controller_test.rb
192
+ - test/functional/api/v2/salt_states_controller_test.rb
193
+ - test/functional/minions_controller_test.rb
189
194
  - test/integration/salt_autosign_test.rb
190
- - test/integration/salt_module_test.rb
191
195
  - test/integration/salt_environment_test.rb
192
196
  - test/integration/salt_keys_test.rb
193
- - test/unit/highstate.json
194
- - test/unit/report_importer_test.rb
197
+ - test/integration/salt_module_test.rb
195
198
  - test/unit/grains_centos.json
196
- - test/unit/host_extensions_test.rb
197
- - test/unit/salt_modules_test.rb
198
199
  - test/unit/grains_importer_test.rb
200
+ - test/unit/highstate.json
199
201
  - test/unit/salt_keys_test.rb
202
+ - test/unit/salt_modules_test.rb
203
+ - test/unit/host_extensions_test.rb
200
204
  - test/unit/hostgroup_extensions_test.rb
205
+ - test/unit/report_importer_test.rb
201
206
  - test/test_plugin_helper.rb
202
- - test/functional/api/v2/salt_keys_controller_test.rb
203
- - test/functional/api/v2/salt_autosign_controller_test.rb
204
- - test/functional/api/v2/salt_environments_controller_test.rb
205
- - test/functional/api/v2/salt_states_controller_test.rb
206
- - test/functional/minions_controller_test.rb