parent
921b0c0bed
commit
647092b483
|
@ -71,7 +71,7 @@ ci-not-authorized:
|
||||||
after_script: []
|
after_script: []
|
||||||
rules:
|
rules:
|
||||||
# LGTM or ok-to-test labels
|
# LGTM or ok-to-test labels
|
||||||
- if: $PR_LABELS =~ /.*,(lgtm|ok-to-test).*|^(lgtm|ok-to-test).*/i
|
- if: $PR_LABELS =~ /.*,(lgtm|approved|ok-to-test).*|^(lgtm|approved|ok-to-test).*/i
|
||||||
variables:
|
variables:
|
||||||
CI_OK_TO_TEST: '0'
|
CI_OK_TO_TEST: '0'
|
||||||
when: always
|
when: always
|
||||||
|
|
|
@ -38,8 +38,15 @@ def main():
|
||||||
conn.compute.servers())
|
conn.compute.servers())
|
||||||
|
|
||||||
print('Security groups...')
|
print('Security groups...')
|
||||||
map_if_old(conn.network.delete_security_group,
|
try:
|
||||||
conn.network.security_groups())
|
map_if_old(conn.network.delete_security_group,
|
||||||
|
conn.network.security_groups())
|
||||||
|
except openstack.exceptions.ConflictException as ex:
|
||||||
|
# Need to delete port when security groups is in used
|
||||||
|
map_if_old(conn.network.delete_port,
|
||||||
|
conn.network.ports())
|
||||||
|
map_if_old(conn.network.delete_security_group,
|
||||||
|
conn.network.security_groups())
|
||||||
|
|
||||||
print('Ports...')
|
print('Ports...')
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue