Skip to content

Commit

Permalink
Worked around a bug in 'puppet lookup' - PUP-11402 (#163)
Browse files Browse the repository at this point in the history
Closes #162
  • Loading branch information
trevor-vaughan authored Jan 11, 2022
1 parent 5faee1a commit 55af4b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
### 1.24.1 / 2021-10-27
* Fixed:
* Worked around a bug in 'puppet lookup' - PUP-11402
* Updated calls to the operating system fact when connecting to RHSM

### 1.24.0 / 2021-10-05
Expand Down
5 changes: 4 additions & 1 deletion lib/simp/beaker_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1244,8 +1244,11 @@ def copy_hiera_data_to(sut, path)
#
# @returns [String] Path to the Hieradata directory on the target system
def hiera_datadir(sut)
# A workaround for PUP-11042
sut_environment = sut.puppet_configprint['environment']

# This output lets us know where Hiera is configured to look on the system
puppet_lookup_info = on(sut, 'puppet lookup --explain test__simp__test', :silent => true).output.strip.lines
puppet_lookup_info = on(sut, "puppet lookup --explain --environment #{sut_environment} test__simp__test", :silent => true).output.strip.lines

if sut.puppet_configprint['manifest'].nil? || sut.puppet_configprint['manifest'].empty?
fail("No output returned from `puppet config print manifest` on #{sut}")
Expand Down

0 comments on commit 55af4b1

Please sign in to comment.