diff options
author | Josh Cooper <josh@puppet.com> | 2018-06-27 23:44:26 -0700 |
---|---|---|
committer | Josh Cooper <josh@puppet.com> | 2018-06-27 23:45:26 -0700 |
commit | 74b01806ce0d003c00fe665d671d4b282af33424 (patch) | |
tree | 9c6811e40043047f995cfc97f6f6f4271210be64 /spec/acceptance/services.rb | |
parent | e2a0a5a03e0789534c3fc45ceaab442f13fc20d9 (diff) | |
download | puppet-augeas_core-74b01806ce0d003c00fe665d671d4b282af33424.tar.gz puppet-augeas_core-74b01806ce0d003c00fe665d671d4b282af33424.tar.bz2 |
Use guard clause and avoid assignment in conditional
Diffstat (limited to 'spec/acceptance/services.rb')
-rw-r--r-- | spec/acceptance/services.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/acceptance/services.rb b/spec/acceptance/services.rb index 2e48af0..523b953 100644 --- a/spec/acceptance/services.rb +++ b/spec/acceptance/services.rb @@ -9,7 +9,7 @@ test_name 'Augeas services file' do confine :except, platform: 'windows' confine :except, platform: 'osx' - confine :to, {}, hosts.reject { |host| host[:roles].include?('master') } + confine(:to, {}, hosts.reject { |host| host[:roles].include?('master') }) step 'Backup the services file' do on hosts, 'cp /etc/services /tmp/services.bak' |