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

Ignore failures of setting site offline or online

parent 1c878517
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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)))