Skip to content

Commit 776d54a

Browse files
committed
Fix 'or' in controls 5.1 and 5.2
Signed-off-by: Emily Heath <emilyaheath@gmail.com>
1 parent 35847b1 commit 776d54a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

controls/docker_level2.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@
163163
ref 'https://docs.docker.com/engine/reference/run/#security-configuration'
164164
ref 'http://wiki.apparmor.net/index.php/Main_Page'
165165

166-
only_if { os[:family] == ('ubuntu' || 'debian') }
166+
only_if { %w(ubuntu debian).include? os[:name] }
167167
docker.ps.each do |id|
168168
describe docker.inspect(id) do
169169
its(['AppArmorProfile']) { should include(APP_ARMOR_PROFILE) }
@@ -182,7 +182,7 @@
182182
ref 'https://docs.docker.com/engine/reference/run/#security-configuration'
183183
ref 'https://docs.fedoraproject.org/en-US/Fedora/13/html/Security-Enhanced_Linux/'
184184

185-
only_if { os[:family] == ('centos' || 'redhat') }
185+
only_if { %w(centos redhat).include? os[:name] }
186186
describe json('/etc/docker/daemon.json') do
187187
its(['selinux-enabled']) { should eq(true) }
188188
end

0 commit comments

Comments
 (0)