File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
roles/tests-integration/files/importer/config_changes Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 99import logging
1010
1111
12- def randomOctet ():
12+ def random_octet ():
1313 return str (random .randrange (0 , 256 ))
1414
1515
16- def randomIp ():
17- return randomOctet () + '.' + randomOctet () + '.' + randomOctet () + '.' + randomOctet ()
16+ def random_ip ():
17+ return random_octet () + '.' + random_octet () + '.' + random_octet () + '.' + random_octet ()
1818
1919
20- def randomUid ():
20+ def random_uid ():
2121 s = '' .join (random .choices (string .ascii_lowercase + string .digits , k = 32 ))
2222 return s [:8 ] + '-' + s [8 :12 ] + '-' + s [12 :16 ] + '-' + s [16 :20 ] + '-' + s [20 :]
2323
@@ -76,8 +76,8 @@ def randomUid():
7676
7777if actionChosen == 'changeSrcOrDst' :
7878 if not deleteElement :
79- newUid = randomUid ()
80- newIp = randomIp ()
79+ newUid = random_uid ()
80+ newIp = random_ip ()
8181
8282 # cannot add to any obj, so delete it first
8383 if anyObj in ruleSide :
You can’t perform that action at this time.
0 commit comments