simp-beaker-helpers 1.34.0 → 1.34.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1f134126c3a1b23c87a495aac126cd172bc1f261d9da6bcf5f488af22cbdade7
4
- data.tar.gz: 7a24de4dff9da4288b91995e6af7d5be0e58505116c1661e588d51cfcc5bfc0c
3
+ metadata.gz: 79191cfba7b21796d7033045d2db68a654ed8f9b44c18e0a9567cb1da23c43c5
4
+ data.tar.gz: 525d02af1dfd2cbd8b6930b093027683b5970b211c34be85ed5d7702436fdb6b
5
5
  SHA512:
6
- metadata.gz: 69ce9cb283b5df89a141c540df080c670505bd9d1f65db91fdb53b96171e4a66e642f6d3850d26cb4939a3d04271f6766062d45610873f0b9a55a0c6913e0725
7
- data.tar.gz: 74f9426f0356d2b97ef1c7dbcb8eb568b200cdfbeaaa2c0581e87ac1118a7ad2cf0e8060f3a3c5a91d9f73bec963d0d1c570962f475507a6b1ddeb0cfeefdf29
6
+ metadata.gz: d778b165ecd69730ad57613644640d31e3df0966fbaf302d91536c1fb469daa22cc6e8dd039bfc8b69e81b68705c36c1607cd5eda6c1b5cab9cb31e826d2d9cc
7
+ data.tar.gz: d922c5011c991f395c9fbeea86c39a6ffde935e60a927538ada24f927a512cf1c52f6e3abb061f92441b013a89aff39fa5f27a099fd233ca326fd6b814120591
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 1.34.1 / 2024-12-17
2
+ * Fixed:
3
+ * Error when no domain is set (#222)
4
+
1
5
  ### 1.34.0 / 2024-09-17
2
6
  * Fixed:
3
7
  * Legacy fact usage
@@ -3,5 +3,5 @@
3
3
  module Simp; end
4
4
 
5
5
  module Simp::BeakerHelpers
6
- VERSION = '1.34.0'
6
+ VERSION = '1.34.1'
7
7
  end
@@ -723,10 +723,10 @@ module Simp::BeakerHelpers
723
723
  os_info = fact_on(sut, 'os')
724
724
 
725
725
  # Make sure we have a domain on our host
726
- current_domain = fact_on(sut, 'networking.domain').strip
726
+ current_domain = fact_on(sut, 'networking.domain')&.strip
727
727
  hostname = fact_on(sut, 'networking.hostname').strip
728
728
 
729
- if current_domain.empty?
729
+ if current_domain.nil? || current_domain.empty?
730
730
  new_fqdn = hostname + '.beaker.test'
731
731
 
732
732
  safe_sed(sut, 's/#{hostname}.*/#{new_fqdn} #{hostname}/', '/etc/hosts')
@@ -744,9 +744,8 @@ module Simp::BeakerHelpers
744
744
  end
745
745
  end
746
746
 
747
- if fact_on(sut, 'networking.domain').strip.empty?
748
- fail("Error: hosts must have an FQDN, got domain='#{current_domain}'")
749
- end
747
+ current_domain = fact_on(sut, 'networking.domain')&.strip
748
+ fail("Error: hosts must have an FQDN, got domain='#{current_domain}'") if current_domain.nil? || current_domain.empty?
750
749
 
751
750
  # This may not exist in docker so just skip the whole thing
752
751
  if sut.file_exist?('/etc/ssh')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simp-beaker-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.34.0
4
+ version: 1.34.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Tessmer
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-09-18 00:00:00.000000000 Z
12
+ date: 2024-12-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: beaker