From 74b01806ce0d003c00fe665d671d4b282af33424 Mon Sep 17 00:00:00 2001 From: Josh Cooper Date: Wed, 27 Jun 2018 23:44:26 -0700 Subject: Use guard clause and avoid assignment in conditional --- spec/acceptance/services.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/acceptance/services.rb') 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' -- cgit v1.2.3