From 4baf2eb2c391261ed44161329d8b0727b2ce8e33 Mon Sep 17 00:00:00 2001 From: Radoslaw Smigielski Date: Sat, 10 Feb 2024 18:12:17 +0100 Subject: [PATCH] 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 --- examples/network/security_group_rules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/network/security_group_rules.py b/examples/network/security_group_rules.py index 99363c336..b9eb8b8a0 100644 --- a/examples/network/security_group_rules.py +++ b/examples/network/security_group_rules.py @@ -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',