bin/metrics-emr-steps.rb in sensu-plugins-aws-10.1.1 vs bin/metrics-emr-steps.rb in sensu-plugins-aws-10.1.2
- old
+ new
@@ -52,10 +52,10 @@
def count(steps, status)
steps.count { |step| step.status.state == status }
end
- STATUS = %w(PENDING RUNNING COMPLETED CANCELLED FAILED INTERRUPTED).freeze
+ STATUS = %w[PENDING RUNNING COMPLETED CANCELLED FAILED INTERRUPTED].freeze
def cluster_steps(emr, cluster_id, data)
steps = emr.list_steps(
cluster_id: cluster_id
).steps