foreman_openscap 0.6.6 → 0.6.7

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: 6c4dab1fdbaa5dd4db8170491a59d29ddc672e79
4
- data.tar.gz: e1cd9984a4c92b2400dc24a39fe2469ea3cdfdcd
3
+ metadata.gz: 60b44bf885d532551dc2678d9e07dfcae1aa6d1d
4
+ data.tar.gz: 7db79c964443344c0c878427f671525bf8df8940
5
5
  SHA512:
6
- metadata.gz: 70deca132ebeb3ad0322f7c0b14475aec36e6b397cb81139e8c70c01457b8fd731731dffb86aaf179063853a4ff23838aa4b9d498f4cf48d237d392a77096b44
7
- data.tar.gz: bc9312787a7cb601ded7b2fcec2d0891526438884a9d317c003c259cc3da9edfe5afc13987f63b329e8b1c16167647d764fff554ddd34bd381fe8d1f1f36b44d
6
+ metadata.gz: 1f4dc51bdd7d580e73b0be34a96d7fd5f546119403db7db1dedd0f7ffa7a3d80f2b5b5176df28f87ac8abbbc3c00f6ac1f8b86ef1b847ab32e85963c626cdaab
7
+ data.tar.gz: d895e91cf8cafa5377c62f7debade6131556924e13aa14adb737744bfe27b611853f7d0c949c97de5787a05a15e80cd29b5b8d51621eb0da223c240e55687645
@@ -155,11 +155,17 @@ module ForemanOpenscap
155
155
  parameter_filter Hostgroup, :openscap_proxy_id, :openscap_proxy
156
156
  parameter_filter Log, :result
157
157
 
158
- if ForemanOpenscap.with_remote_execution? && Gem::Version.new(ForemanRemoteExecution::VERSION) >= Gem::Version.new('1.2.3')
159
- RemoteExecutionFeature.register(:foreman_openscap_run_scans, N_("Run OpenSCAP scan"),
160
- :description => N_("Run OpenSCAP scan"),
161
- :host_action_button => true,
162
- :provided_inputs => "policies")
158
+ if ForemanOpenscap.with_remote_execution?
159
+ options = {
160
+ :description => N_("Run OpenSCAP scan"),
161
+ :provided_inputs => "policies"
162
+ }
163
+
164
+ if Gem::Version.new(ForemanRemoteExecution::VERSION) >= Gem::Version.new('1.2.3')
165
+ options[:host_action_button] = true
166
+ end
167
+
168
+ RemoteExecutionFeature.register(:foreman_openscap_run_scans, N_("Run OpenSCAP scan"), options)
163
169
  end
164
170
 
165
171
  add_controller_action_scope(::Api::V2::HostsController, :index) do |base_scope|
@@ -1,3 +1,3 @@
1
1
  module ForemanOpenscap
2
- VERSION = "0.6.6"
2
+ VERSION = "0.6.7"
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.6.6
4
+ version: 0.6.7
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-24 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