Skip to content

Commit b9a422d

Browse files
committed
Workaround CI failure
1 parent b07ecf8 commit b9a422d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spec/helpers/acceptance/tests/hiera_shared_examples.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ class { 'elasticsearch': ensure => 'absent', oss => #{v[:oss]} }
5757
end
5858

5959
describe 'with hieradata' do
60-
nodename = SecureRandom.hex(10)
60+
# Remove leading 0: 01234567 is valid octal, but 89abcdef is not and the
61+
# serialisation will cause trouble for the test suite (quoting the value?).
62+
nodename = SecureRandom.hex(10).sub(%r{^0+}, '')
6163
include_examples(
6264
'hiera tests with',
6365
es_config.merge('node.name' => nodename)

0 commit comments

Comments
 (0)