Incorrect protocol type in create_security_group_rule()

Example conn.network.create_security_group_rule() in examples/network/security_group_rules.py
uses wrong protocol type protocol='HTTPS'. HTTPS is not allowed value,
allowed values are: icmp, udp, tcp. It should be "protocol='tcp'" instead.

Closes-Bug: #2052860
Change-Id: I0fb0532ca562bcf93672a1ca3f1ce2e3ad864c6d
This commit is contained in:
Radoslaw Smigielski 2024-02-10 18:12:17 +01:00
parent 5fef752adb
commit 4baf2eb2c3

View File

@ -31,7 +31,7 @@ def open_port(conn):
security_group_id=example_sec_group.id,
direction='ingress',
remote_ip_prefix='0.0.0.0/0',
protocol='HTTPS',
protocol='tcp',
port_range_max='443',
port_range_min='443',
ethertype='IPv4',