Skip to content

Commit 43fff9b

Browse files
committed
Defaults into Globals
Signed-off-by: Katharina Trentau <[email protected]>
1 parent 2c7524f commit 43fff9b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Tests/iaas/security-groups/default-security-group-rules.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
import argparse
1111
from openstack.exceptions import ResourceNotFound
1212

13+
SG_NAME = "default-test-sg"
14+
DESCRIPTION = "default-test-sg"
15+
1316

1417
def connect(cloud_name: str) -> openstack.connection.Connection:
1518
"""Create a connection to an OpenStack cloud
@@ -106,9 +109,7 @@ def test_rules(cloud_name: str):
106109
return result_dict
107110

108111

109-
def create_security_group(
110-
conn, sg_name: str = "default-test-sg", description: str = "default-test-sg"
111-
):
112+
def create_security_group(conn, sg_name: str = SG_NAME, description: str = DESCRIPTION):
112113
"""Create security group in openstack
113114
114115
Args:

0 commit comments

Comments
 (0)