Skip to content

Commit

Permalink
use fact_on method
Browse files Browse the repository at this point in the history
  • Loading branch information
zilchms committed Feb 20, 2024
1 parent 189dd44 commit fddeafb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
pcs_version = '0.10.0'
when 'Ubuntu'
default_provider = 'pcs'
pcs_version = if facts[:os]['release']['major'].to_i > 18
pcs_version = if fact_on(host,'os.release.major').to_i > 18

Check failure on line 21 in spec/spec_helper_acceptance.rb

View workflow job for this annotation

GitHub Actions / Puppet / Static validations

Layout/SpaceAfterComma: Space missing after comma. (https://rubystyle.guide#spaces-operators)
'0.10.0'
else
'0.9.0'
Expand Down

0 comments on commit fddeafb

Please sign in to comment.