Skip to content

Commit cdf9435

Browse files
committed
Conditionally load ApplicationInsightsUtility
1 parent 0e87bfb commit cdf9435

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/code/plugin/health/health_container_cpu_memory_aggregator.rb

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
require_relative 'health_model_constants'
22

3+
# Require only when running inside container.
34
# otherwise unit tests will fail due to ApplicationInsightsUtility dependency on base omsagent ruby files. If you have your dev machine starting with omsagent-rs, then GOOD LUCK!
45
if Socket.gethostname.start_with?('omsagent-rs')
56
require_relative '../ApplicationInsightsUtility'

0 commit comments

Comments
 (0)