foreman_puppet 4.0.4 → 4.1.0

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: 314d7d6b144722c190425f83640ed9c147703933d8a393c111340625331bc690
4
- data.tar.gz: 42b53c1aab258f5a421e66ff1709ff9eaf2fdf5f463954d1eee50a7c9f195c8f
3
+ metadata.gz: 745a9b5da4d9e341965da09876aea703a9a9e40f2bfc989f002e1263aa67547b
4
+ data.tar.gz: 2e80676582c1105c5839682d076f2e03ae6240721e46daf04a7c76e0721aafca
5
5
  SHA512:
6
- metadata.gz: 0ecbde2f0782d0fe4c4fafd8906367f088d878643bb5b6bc633619a4ccb2270ace2a07bda66b3cce041b8fb2623afec9352bc6f690c363eefbde140720e18461
7
- data.tar.gz: 3834a356630a973ac6b074dcb350207ed99f5845e10afe2414d67b163acee77433add99b08606c75023a629e2578c4b44b911f19a1ea6d3793b16cae53a4038f
6
+ metadata.gz: a246077d90bf3e91c5963bb603680354ee18c94a0e523067d85683ebd48ee4cd4757e88a8438a456438abd6086a3db88087099e69520bdf79f1213ddddb0b282
7
+ data.tar.gz: 58f460b97fad16c5d4ca45850d58baf059e70fd72b7ab898369c64200bfe5a3dd3b472d3b52dfdc0f2650061c49604e59a6cafec5b97933ad996d9aed9332640
data/README.md CHANGED
@@ -37,8 +37,9 @@ You can install it on Foreman 2.5 to prepare for the Foreman update.
37
37
 
38
38
  |Foreman version|Plugin version|Notes |
39
39
  |---------------|--------------|------------------------------------------|
40
- | >= 3.3 | ~> 4.0 | Required |
41
- | >= 3.2 | ~> 3.0 | Required |
40
+ | ~> 3.4 | ~> 4.1 | Required |
41
+ | ~> 3.3 | ~> 4.0 | Required |
42
+ | ~> 3.2 | ~> 3.0 | Required |
42
43
  | ~> 3.1 | ~> 2.0 | Required |
43
44
  | ~> 3.0 | ~> 1.0 | Required |
44
45
  | >= 2.5 | ~> 0.1 | Optional; replaces Core features |
@@ -15,8 +15,8 @@ module ForemanPuppet
15
15
  before_destroy EnsureNotUsedBy.new(:hosts, :hostgroups)
16
16
  has_many :environment_classes, dependent: :destroy, inverse_of: :puppetclass
17
17
  has_many :environments, -> { distinct }, through: :environment_classes
18
- has_many :organizations, -> { distinct.reorder(nil) }, through: :environments
19
- has_many :locations, -> { distinct.reorder(nil) }, through: :environments
18
+ has_many :organizations, -> { distinct.reorder(:id) }, through: :environments
19
+ has_many :locations, -> { distinct.reorder(:id) }, through: :environments
20
20
 
21
21
  # rubocop:disable Rails/HasAndBelongsToMany
22
22
  has_and_belongs_to_many :operatingsystems
@@ -1,3 +1,3 @@
1
1
  module ForemanPuppet
2
- VERSION = '4.0.4'.freeze
2
+ VERSION = '4.1.0'.freeze
3
3
  end
@@ -72,7 +72,7 @@ module ForemanPuppet
72
72
  assert_equal 1, host.interfaces.count
73
73
  interface = host.interfaces.first
74
74
  assert_equal 'Nic::Bond', interface.type
75
- assert_equal 'eth0, eth1', interface.attached_to
75
+ assert_same_elements %w[eth0 eth1], interface.attached_to.split(', ')
76
76
  assert_equal 'bond0', interface.identifier
77
77
  assert interface.primary
78
78
  assert interface.provision
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_puppet
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.4
4
+ version: 4.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ondřej Ezr
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-12-20 00:00:00.000000000 Z
12
+ date: 2022-12-25 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Allow assigning Puppet environments and classes to the Foreman Hosts.
15
15
  email: