Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsver committed Aug 7, 2024
1 parent be46032 commit 155da31
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spec/services/logstash_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@
end

describe "Checking service status for #{service}..." do
service_status = command("systemctl is-enabled #{service}").stdout.strip
regex = '^- pipeline\.id: .*-pipeline$'
has_pipelines = command("grep --perl-regex '#{regex}' #{PIPELINES_PATH}").stdout

if !has_pipelines
unless has_pipelines
describe service(service) do
it { should_not be_enabled }
it { should_not be_running }
Expand Down

0 comments on commit 155da31

Please sign in to comment.