Skip to content

Commit

Permalink
Avoid sending the sha: statsd tag unnecessarily
Browse files Browse the repository at this point in the history
  • Loading branch information
dirceu committed Nov 11, 2019
1 parent 49eb22e commit f273cb8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/krane/deprecated_deploy_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,10 @@ def ejson_keys_secret
end

def statsd_tags
%W(namespace:#{@namespace} sha:#{@current_sha} context:#{@context}) | @namespace_tags
tags = %W(namespace:#{@namespace} context:#{@context}) | @namespace_tags
unless @current_sha.nil?
%W(sha:#{@current_sha}) | tags
end
end

def with_retries(limit)
Expand Down

0 comments on commit f273cb8

Please sign in to comment.