foreman_openscap 1.0.3 → 1.0.4

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: 9ba06ec969363c17f549cb5c675f9b06d7c26dbe
4
- data.tar.gz: 34ac801ee2331101fb6d105006bccde69a3cbf69
3
+ metadata.gz: 2bb650d43ac1e63a3a59875b4f699aaa85c3f147
4
+ data.tar.gz: 1df85b65c444c8374458776bd3bd608bf2cda0d6
5
5
  SHA512:
6
- metadata.gz: d32fbc19db370c740d81f7dd78bc821d809deefda9fe288cf3e33896ff7fd251e24c9a82b6a770f1372e32f9f7082f11cc684ff626ee17e08fed5c01ba2eab63
7
- data.tar.gz: 1ab03333512f3e9a3d21bbb2b5b3830f6a487d0c18705defc793af87813e65c1902f7cab65350a319c4e34327b15eb3f42e9141eac1672f9fe2e83fd1c711233
6
+ metadata.gz: 5efb6c2e817057e687acf1ee59e33f3ec8ec2cd6efe5665251d985af370d6b1d399284cc9c08fcff534b5635e42664b20e80f8abca2d44ddcc574e178c967abd
7
+ data.tar.gz: 369139267348ea91d46c7dbd0f6950a40f68474109dee88e0366f9dbc0e874697e37c862e0d09050c850ca849942c1eb378c102b64928770fd558c0fde0dd74f
@@ -23,6 +23,7 @@ module ForemanOpenscap
23
23
  lookup_keys = client_item.public_send(config.override_method_name)
24
24
  server_key = lookup_keys.find { |param| param.key == config.server_param }
25
25
  port_key = lookup_keys.find { |param| param.key == config.port_param }
26
+ return if server_key.nil? || port_key.nil?
26
27
  pairs = scap_client_lookup_values_for([server_key, port_key], model_match)
27
28
  if openscap_proxy_id
28
29
  mapping = { config.server_param => openscap_proxy.hostname, config.port_param => openscap_proxy.port }
@@ -1,3 +1,3 @@
1
1
  module ForemanOpenscap
2
- VERSION = "1.0.3".freeze
2
+ VERSION = "1.0.4".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_openscap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - slukasik@redhat.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-26 00:00:00.000000000 Z
11
+ date: 2019-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deface