smart_proxy_discovery_image 1.3.1 → 1.3.2

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
  SHA256:
3
- metadata.gz: 43314999e259f9fc1687fc4eb31dce1293010ed14a59d77e343ac0b7491cf503
4
- data.tar.gz: 91f710c0e4698dc382ea2a5eda4732796b8cb2002de389d4ad0ca189179296bb
3
+ metadata.gz: 06fb066da89eca96661970388bb0588b3076f00689879ff7ece68105b30fcc85
4
+ data.tar.gz: 187d75b1483efebe1bdae04712313feb6f3476d881c6e090274f676ad930e55d
5
5
  SHA512:
6
- metadata.gz: eca1ddeaefcabec8bbd22005b264bea797976c5cce1e660d04d54d48dae255d9fad0129a51f2d32b999766cde12514770d31b6b431432c687820e45b665e7afc
7
- data.tar.gz: b7f5dcddcbe845fd055df2e7fb540b03691906c52f66b6d80298b84fd85055cccbcee0b029dbfa17dfbe71bc3f72116798229ee0da9baaea9dadad834c2c3097
6
+ metadata.gz: b34e23f7f4feef89fa9ddbd02614e3bab7c1e14fc54a5ea204ac0b430b27855e1ac4bda0bbf1b94fcf55c8599c74a2103e4b48644f58be97cc8564b8c0a481ed
7
+ data.tar.gz: f07f7622707f201e003f65f3e98b0cbb94aa380115d05ca08561b44d16820570dc47409a3db12e4dda6a7509601de200666ad91713d598720f29640ae2e65398
@@ -27,7 +27,12 @@ module Proxy::DiscoveryImage
27
27
  log_halt 500, "Unable to parse kexec JSON input: #{body_data}"
28
28
  end
29
29
  args = ["--debug", "--force"]
30
- args << data['extra'] if data['extra']
30
+ extra = data['extra']
31
+ if extra && extra.is_a?(String)
32
+ args << extra
33
+ elsif extra && extra.is_a?(Array)
34
+ args.concat(extra)
35
+ end
31
36
  args << "--kexec-file-syscall" if is_secureboot
32
37
  args << "--append=#{data['append']}"
33
38
  args << "--initrd=/tmp/initrd.img"
@@ -1,5 +1,5 @@
1
1
  module Proxy
2
2
  module DiscoveryImage
3
- VERSION = '1.3.1'
3
+ VERSION = '1.3.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smart_proxy_discovery_image
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lukas Zapletal
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-23 00:00:00.000000000 Z
11
+ date: 2020-12-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |2
14
14
  Smart Proxy plugin providing Image API on discovered nodes. This plugin is only
@@ -34,7 +34,7 @@ homepage: https://github.com/theforeman/smart_proxy_discovery_image
34
34
  licenses:
35
35
  - GPL-3.0
36
36
  metadata: {}
37
- post_install_message:
37
+ post_install_message:
38
38
  rdoc_options: []
39
39
  require_paths:
40
40
  - lib
@@ -50,7 +50,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
50
50
  version: '0'
51
51
  requirements: []
52
52
  rubygems_version: 3.1.2
53
- signing_key:
53
+ signing_key:
54
54
  specification_version: 4
55
55
  summary: FDI API for Foreman Smart-Proxy
56
56
  test_files: []