From e102756cd7a0a301b57d3c91ee65a094c6dd76fa Mon Sep 17 00:00:00 2001 From: Gavin Patton Date: Wed, 3 May 2023 09:19:14 +0100 Subject: [PATCH] (CONT-953) Fix bad include method Prior to this commit, a pdk validation error was corrected to use the include method. This commit implements this method properly as the ? was missed --- tasks/docker_exp.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/docker_exp.rb b/tasks/docker_exp.rb index b52d4d5..60a7927 100755 --- a/tasks/docker_exp.rb +++ b/tasks/docker_exp.rb @@ -21,9 +21,9 @@ def provision(docker_platform, inventory_location, vars) end docker_run_opts += ' --volume /sys/fs/cgroup:/sys/fs/cgroup:rw' if (docker_platform =~ %r{debian|ubuntu}) \ - && !docker_run_opts.include('--volume /sys/fs/cgroup:/sys/fs/cgroup') + && !docker_run_opts.include?('--volume /sys/fs/cgroup:/sys/fs/cgroup') docker_run_opts += ' --cgroupns=host' if (docker_platform =~ %r{debian|ubuntu}) \ - && !docker_run_opts.include('--cgroupns') + && !docker_run_opts.include?('--cgroupns') creation_command = "docker run -d -it --privileged #{docker_run_opts} #{docker_platform}" container_id = run_local_command(creation_command).strip[0..11]