Skip to content

Commit

Permalink
[minor_change] Added condition to check the securityPolicy value in t…
Browse files Browse the repository at this point in the history
…he schema_template_contract_service_graph.go model
  • Loading branch information
sajagana authored and lhercot committed Dec 8, 2023
1 parent f7166df commit fcf4a64
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion models/schema_template_contract_service_graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,15 @@ func NewSiteContractServiceGraphListener(ops, path, name, protocol, securityPoli
"name": name,
"port": port,
"protocol": protocol,
"secPolicy": securityPolicy,
"certificates": certificates,
"rules": rules,
"nlbDevIp": frontendIpDnMap,
}

if securityPolicy != "" {
listenerMap["secPolicy"] = securityPolicy
}

return &PatchPayload{
Ops: ops,
Path: path,
Expand Down

0 comments on commit fcf4a64

Please sign in to comment.