[enh] Avoid to modify untestable migrations

This commit is contained in:
ljf 2019-08-14 17:37:43 +02:00
parent fac44f44d0
commit 0a2ba102c8

View file

@ -25,7 +25,6 @@ class MyMigration(Migration):
dependencies = ["migrate_to_stretch"]
def run(self):
try:
# Get list of php5 pool files
php5_pool_files = glob.glob("{}/*.conf".format(PHP5_POOLS))
@ -72,7 +71,8 @@ class MyMigration(Migration):
# Reload nginx
_run_service_command("reload", "nginx")
except Exception:
def backward(self):
# Get list of php7 pool files
php7_pool_files = glob.glob("{}/*.conf".format(PHP7_POOLS))
@ -97,4 +97,3 @@ class MyMigration(Migration):
# Reload nginx
_run_service_command("reload", "nginx")
raise