Browse Source

Merge "Drop trycmd() from manila/utils.py"

Zuul 3 months ago
parent
commit
7665ff4404
1 changed files with 0 additions and 7 deletions
  1. 0
    7
      manila/utils.py

+ 0
- 7
manila/utils.py View File

@@ -96,13 +96,6 @@ def execute(*cmd, **kwargs):
96 96
     return processutils.execute(*cmd, **kwargs)
97 97
 
98 98
 
99
-def trycmd(*args, **kwargs):
100
-    """Convenience wrapper around oslo's trycmd() function."""
101
-    if 'run_as_root' in kwargs and 'root_helper' not in kwargs:
102
-        kwargs['root_helper'] = _get_root_helper()
103
-    return processutils.trycmd(*args, **kwargs)
104
-
105
-
106 99
 class SSHPool(pools.Pool):
107 100
     """A simple eventlet pool to hold ssh connections."""
108 101
 

Loading…
Cancel
Save