$def with (output, now) $ data = 0.4
$ errors = 0 $ color = "green" $for server in range(len(output)): $code: errors = 0 color = "green" $for check in output[server]['result'].keys(): $ isError = output[server]['result'].get(check) $if isError != 0: $code: errors=errors+1 $if errors > 0: $code: color = "red"$output[server]['name'] | |
---|---|
$check | |
$check |
$output[server]['name'] | |
---|---|
$check | |
$check |