Skip to content

Commit

Permalink
lint too long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
ljblancoredborder committed Jun 24, 2024
1 parent f936124 commit 1fdd27a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spec/configuration/cgroup_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@
end

hostname = command('hostname -s')
excluded_memory_services = command("knife node show #{hostname} -l -F json | jq '.default.redborder.excluded_memory_services | keys[]'").split("\n")
excluded_memory_services = command("knife node show #{hostname} -l -F json | " \
"jq '.default.redborder.excluded_memory_services | keys[]'").split("\n")

describe 'Check excluded memory service' do
it 'Check chef-client is a excluded memory service' do
Expand All @@ -73,7 +74,8 @@
end
end

memory_services = command("knife node show #{hostname} -l -F json | jq '.default.redborder.memory_services | keys[]'").split("\n")
memory_services = command("knife node show #{hostname} -l -F json | " \
"jq '.default.redborder.memory_services | keys[]'").split("\n")
[memory_services, excluded_memory_services].map! { |array| Set.new(array) }
non_excluded_serv = memory_services.difference(excluded_memory_services)

Expand Down

0 comments on commit 1fdd27a

Please sign in to comment.