Method: Puppet::Transaction::Report#compute_status

Defined in:
lib/vendor/puppet/transaction/report.rb

#compute_status(resource_metrics, change_metric) ⇒ Object



46
47
48
49
50
51
52
53
54
# File 'lib/vendor/puppet/transaction/report.rb', line 46

def compute_status(resource_metrics, change_metric)
  if (resource_metrics["failed"] || 0) > 0
    'failed'
  elsif change_metric > 0
    'changed'
  else
    'unchanged'
  end
end