We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e24d890 + 9a55434 commit b04e822Copy full SHA for b04e822
acceptance/tests/resource/service/init_on_systemd.rb
@@ -1,9 +1,8 @@
1
test_name 'SysV on default Systemd Service Provider Validation' do
2
3
confine :to, :platform => /el-[6-8]|centos|fedora-(2[0-9])/ do |h|
4
- on(h, 'which systemctl', :acceptable_exit_codes => [0, 1]) do |result|
5
- result.stdout =~ /systemctl/
6
- end
+ result = on(h, 'which systemctl', :acceptable_exit_codes => [0, 1])
+ result.stdout =~ /systemctl/
7
end
8
9
tag 'audit:high',
0 commit comments