Skip to content

Commit f4d68a0

Browse files
qibobomattcolegate
authored andcommitted
only check agent config
1 parent e00189a commit f4d68a0

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Sources/SwiftMetricsBluemix/SwiftMetricsBluemix.swift

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -376,12 +376,8 @@ public class AutoScalar {
376376
return
377377
}
378378
if (jsonData["metricsConfig"]["agent"] == nil) {
379-
if (jsonData["metricsConfig"]["poller"] == nil) {
380-
isAgentEnabled = false
381-
return
382-
} else {
383-
enabledMetrics=jsonData["metricsConfig"]["poller"].arrayValue.map({$0.stringValue})
384-
}
379+
isAgentEnabled = false
380+
return
385381
} else {
386382
isAgentEnabled = true
387383
enabledMetrics=jsonData["metricsConfig"]["agent"].arrayValue.map({$0.stringValue})

0 commit comments

Comments
 (0)