Skip to content

Commit

Permalink
(SIMP-8925) Use stdout instead of output in pfact_on (#135)
Browse files Browse the repository at this point in the history
This avoids problems with JSON parsing when there is output on stderr.

SIMP-8925 #close
  • Loading branch information
silug authored Dec 19, 2020
1 parent f6f274c commit c8c0dfe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Fixed the file_content_on method
* Removed EL 6 support from the tests since the core repos are defunct
* Started removing some of the puppet 4 tests
* Fixed an issue with pfact_on

### 1.19.0 / 2020-09-30
* Fixed:
Expand Down
2 changes: 1 addition & 1 deletion lib/simp/beaker_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def copy_to(sut, src, dest, opts={})

# use the `puppet fact` face to look up facts on an SUT
def pfact_on(sut, fact_name)
facts_json = on(sut,'puppet facts find xxx').output
facts_json = on(sut,'puppet facts find xxx').stdout
facts = JSON.parse(facts_json).fetch( 'values' )
facts.fetch(fact_name)
end
Expand Down

0 comments on commit c8c0dfe

Please sign in to comment.