From 51a37a7aff71d7202d827f60d4ece9b0b955227f Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Thu, 3 Jan 2019 13:56:22 +0100 Subject: [PATCH] Drop trycmd() from manila/utils.py The function is not used anywhere. Change-Id: If3daf29df1e47974366b6e263827847683929489 --- manila/utils.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/manila/utils.py b/manila/utils.py index 7513e2e8d8..1a38a4a71c 100644 --- a/manila/utils.py +++ b/manila/utils.py @@ -96,13 +96,6 @@ def execute(*cmd, **kwargs): return processutils.execute(*cmd, **kwargs) -def trycmd(*args, **kwargs): - """Convenience wrapper around oslo's trycmd() function.""" - if 'run_as_root' in kwargs and 'root_helper' not in kwargs: - kwargs['root_helper'] = _get_root_helper() - return processutils.trycmd(*args, **kwargs) - - class SSHPool(pools.Pool): """A simple eventlet pool to hold ssh connections."""