Commit 655c9876 authored by Victor Nikulshin's avatar Victor Nikulshin
Browse files

Ignore failures of setting site offline or online

parent 1c878517
......@@ -77,7 +77,7 @@ def _set_site_offline(target, environment):
Helper function to set the site in maintenance.
:param environment
run('drush --yes --root={} vset site_offline 1'.format(target.get('root')))
run('drush --yes --root={} vset site_offline 1 || true'.format(target.get('root')))
print(green('The is in maintenance mode on the target environment {}.'.format(environment)))
......@@ -86,7 +86,7 @@ def _set_site_online(target, environment):
Helper function to set the site online.
:param environment
run('drush --yes --root={} vset site_offline 0'.format(target.get('root')))
run('drush --yes --root={} vset site_offline 0 || true'.format(target.get('root')))
print(green('The site is online on the target environment {}.'.format(environment)))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment