formatting

This commit is contained in:
dvanaken 2019-11-08 11:08:06 -05:00 committed by Dana Van Aken
parent 9a4bbeead5
commit 6a58c52762
1 changed files with 2 additions and 2 deletions

View File

@ -273,8 +273,8 @@ def save_next_config(next_config, t=None):
@task
def free_cache():
if dconf.HOST_CONN != 'docker': # pylint: disable=not-context-manager
with show('everything'), settings(warn_only=True):
if dconf.HOST_CONN != 'docker':
with show('everything'), settings(warn_only=True): # pylint: disable=not-context-manager
res = sudo("sync && echo 3 | tee /proc/sys/vm/drop_caches")
if res.failed:
LOG.error('%s (return code %s)', res.stderr.strip(), res.return_code)