Ensure port_range_min is optional
Ensure port_range_min can be skip as the default value (all ports) is considered anyway. Closes-Bug: 1824366 Change-Id: Ic0e724458176b451c3e67413d27a12885f965b99
This commit is contained in:
parent
6e6d74b875
commit
7d03fb19f8
|
@ -236,7 +236,7 @@ def patch_kuryr_crd(crd, i_rules, e_rules, pod_selector, np_spec=None):
|
|||
|
||||
|
||||
def create_security_group_rule_body(
|
||||
security_group_id, direction, port_range_min,
|
||||
security_group_id, direction, port_range_min=None,
|
||||
port_range_max=None, protocol=None, ethertype='IPv4', cidr=None,
|
||||
description="Kuryr-Kubernetes NetPolicy SG rule", namespace=None):
|
||||
if not port_range_min:
|
||||
|
|
Loading…
Reference in New Issue