Skip to content

Commit 29fd454

Browse files
committed
Update /etc/hosts on all nodes when hostname changes
Fixes simp#227
1 parent b35795b commit 29fd454

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### 1.34.3 / 2024-12-20
2+
* Fixed:
3+
* Update /etc/hosts on all nodes when hostname changes (#227)
4+
15
### 1.34.2 / 2024-12-19
26
* Fixed:
37
* Update /etc/hosts when hostname changes (#224)

lib/simp/beaker_helpers.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ def linux_errata( suts )
729729
if current_domain.nil? || current_domain.empty?
730730
new_fqdn = hostname + '.beaker.test'
731731

732-
safe_sed(sut, "s/#{hostname}.*/#{new_fqdn} #{hostname}/", '/etc/hosts')
732+
safe_sed(suts, "s/#{hostname}.*/#{new_fqdn} #{hostname}/", '/etc/hosts')
733733

734734
if !sut.which('hostnamectl').empty?
735735
on(sut, "hostnamectl set-hostname #{new_fqdn}")

lib/simp/beaker_helpers/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
module Simp; end
44

55
module Simp::BeakerHelpers
6-
VERSION = '1.34.2'
6+
VERSION = '1.34.3'
77
end

0 commit comments

Comments
 (0)