foreman_openscap 0.7.0 → 0.7.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: bb3744e73ddf3598ad80b9b73a6a0976f9d3323e
4
- data.tar.gz: 9d13279059f0b9a936264fd0504b030bc67fe7c8
3
+ metadata.gz: d990a16bea1dc5c0a6f4842fb3f61df880f744fb
4
+ data.tar.gz: 1cc01508d9d31b40a171f809f4f6efa8ebd6485a
5
5
  SHA512:
6
- metadata.gz: 14555d42760bae73b2e361eeb3e2235b66ea13eb6da1c36008891c4d448b01329da7194e1317b79c24ecb72b4f21f8909e23565475c1d241d6d9721d49541c62
7
- data.tar.gz: 8f2421b8a49450ee99a665f37866d9c6e0a91e1312eb4142604279b7371ec56b4f0fb1b2693d9697b317322ffaf724e4ce7c52e66bfe8c484cee495497c198f4
6
+ metadata.gz: e33ad9f4607d3b235e0be752bf6a49594221a2ed8ac4e3c6a67f59b71df5712ad041c8e09ba4718d56301d4d9c21a2e9898c92168f1feb25e6180d630e11121a
7
+ data.tar.gz: 2d58fcf86df24c30fdb767ad866a2e9ceb2b1e92a7ab8c97efcb793132f7a0371e2ffbce4d5ac1420665204abc1bc194702d4bb757338da4138669099a280a20
@@ -157,11 +157,17 @@ module ForemanOpenscap
157
157
  parameter_filter Hostgroup, :openscap_proxy_id, :openscap_proxy
158
158
  parameter_filter Log, :result
159
159
 
160
- if ForemanOpenscap.with_remote_execution? && Gem::Version.new(ForemanRemoteExecution::VERSION) >= Gem::Version.new('1.2.3')
161
- RemoteExecutionFeature.register(:foreman_openscap_run_scans, N_("Run OpenSCAP scan"),
162
- :description => N_("Run OpenSCAP scan"),
163
- :host_action_button => true,
164
- :provided_inputs => "policies")
160
+ if ForemanOpenscap.with_remote_execution?
161
+ options = {
162
+ :description => N_("Run OpenSCAP scan"),
163
+ :provided_inputs => "policies"
164
+ }
165
+
166
+ if Gem::Version.new(ForemanRemoteExecution::VERSION) >= Gem::Version.new('1.2.3')
167
+ options[:host_action_button] = true
168
+ end
169
+
170
+ RemoteExecutionFeature.register(:foreman_openscap_run_scans, N_("Run OpenSCAP scan"), options)
165
171
  end
166
172
 
167
173
  add_controller_action_scope(::Api::V2::HostsController, :index) do |base_scope|
@@ -1,3 +1,3 @@
1
1
  module ForemanOpenscap
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_openscap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Šimon Lukašík"
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2017-03-30 00:00:00.000000000 Z
14
+ date: 2017-04-05 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: deface