GetFirewallVersion returns the AWF firewall version, preferring the new field name (awf_version) but falling back to the old field name (firewall_version) for backward compatibility with older aw_info.json files.
()
| 333 | // (awf_version) but falling back to the old field name (firewall_version) for |
| 334 | // backward compatibility with older aw_info.json files. |
| 335 | func (a *AwInfo) GetFirewallVersion() string { |
| 336 | if a.AwfVersion != "" { |
| 337 | return a.AwfVersion |
| 338 | } |
| 339 | return a.FirewallVersion |
| 340 | } |
| 341 | |
| 342 | // isFailureConclusion returns true if the conclusion represents a failure state |
| 343 | // (timed_out, failure, or cancelled) that should be counted as an error |
no outgoing calls