lib/instana/backend/serverless_agent.rb in instana-1.200.0.pre1 vs lib/instana/backend/serverless_agent.rb in instana-1.200.0
- old
+ new
@@ -96,10 +96,10 @@
snapshot.snapshot
rescue StandardError => e
@logger.error(e.message)
nil
end
- end.compact
+ end.reject { |_, v| v.nil? }
end
def host_name
snapshot = @snapshots.detect { |s| s.respond_to?(:host_name) }