formatting
This commit is contained in:
4
client/driver/fabfile.py
vendored
4
client/driver/fabfile.py
vendored
@@ -273,8 +273,8 @@ def save_next_config(next_config, t=None):
|
|||||||
|
|
||||||
@task
|
@task
|
||||||
def free_cache():
|
def free_cache():
|
||||||
if dconf.HOST_CONN != 'docker': # pylint: disable=not-context-manager
|
if dconf.HOST_CONN != 'docker':
|
||||||
with show('everything'), settings(warn_only=True):
|
with show('everything'), settings(warn_only=True): # pylint: disable=not-context-manager
|
||||||
res = sudo("sync && echo 3 | tee /proc/sys/vm/drop_caches")
|
res = sudo("sync && echo 3 | tee /proc/sys/vm/drop_caches")
|
||||||
if res.failed:
|
if res.failed:
|
||||||
LOG.error('%s (return code %s)', res.stderr.strip(), res.return_code)
|
LOG.error('%s (return code %s)', res.stderr.strip(), res.return_code)
|
||||||
|
|||||||
Reference in New Issue
Block a user