Skip to content

Commit

Permalink
Update test/cookbooks/selinux_test/recipes/fcontext.rb
Browse files Browse the repository at this point in the history
Thanks for suggestion, I will re-run the test.

Co-authored-by: Corey Hemminger <[email protected]>
  • Loading branch information
ywei2017 and Stromweld authored Apr 29, 2024
1 parent 65929b1 commit b4b95dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/cookbooks/selinux_test/recipes/fcontext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# Use converge counter so we only do the fcontext manipulation in first round. Otherwise
# the "enforce_idempotency" will cause converge to fail.

node.run_state['chef_converge_counter'] = `cat /tmp/chef_converge_counter 2>/dev/null`.to_i
node.run_state['chef_converge_counter'] = shellout('cat /tmp/chef_converge_counter').stdout.to_i
node.run_state['chef_converge_counter'] += 1
file '/tmp/chef_converge_counter' do
content lazy { node.run_state['chef_converge_counter'].to_s }
Expand Down

0 comments on commit b4b95dc

Please sign in to comment.