Drop trycmd() from manila/utils.py

The function is not used anywhere.

Change-Id: If3daf29df1e47974366b6e263827847683929489
This commit is contained in:
Thomas Bechtold 2019-01-03 13:56:22 +01:00
parent 2a27a433d3
commit 51a37a7aff
1 changed files with 0 additions and 7 deletions

View File

@ -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."""