From 649aef7339df3870399c6fa695b7f057f5431a9a Mon Sep 17 00:00:00 2001 From: Jake Spain Date: Fri, 21 Apr 2023 08:43:11 -0400 Subject: [PATCH] Rubocop fix: Style/SlicingWithRange --- lib/vmpooler/api/v3.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vmpooler/api/v3.rb b/lib/vmpooler/api/v3.rb index 4e8f6e9..3b629dc 100644 --- a/lib/vmpooler/api/v3.rb +++ b/lib/vmpooler/api/v3.rb @@ -302,7 +302,7 @@ module Vmpooler # Very simple filter for Litmus jobs - just count them coming through for the moment. metrics.increment("usage_litmus.#{user}.#{operation}.#{poolname}") else - url_parts = jenkins_build_url.split('/')[2..-1] + url_parts = jenkins_build_url.split('/')[2..] jenkins_instance = url_parts[0].gsub('.', '_') value_stream_parts = url_parts[2].split('_') value_stream_parts = value_stream_parts.map { |s| s.gsub('.', '_') }