MCPcopy Create free account
hub / github.com/github/gh-aw / GetFirewallVersion

Method GetFirewallVersion

pkg/cli/logs_models.go:335–340  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

333// (awf_version) but falling back to the old field name (firewall_version) for
334// backward compatibility with older aw_info.json files.
335func (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

Calls

no outgoing calls

Tested by 2

TestGetFirewallVersionFunction · 0.64