summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bechtold <tbechtold@suse.com>2019-01-03 13:56:22 +0100
committerThomas Bechtold <tbechtold@suse.com>2019-01-03 13:56:22 +0100
commit51a37a7aff71d7202d827f60d4ece9b0b955227f (patch)
treec42113ca66235a736ca1b107c1f3249bb40220b5
parent2a27a433d3f579c731c13ef05b89ba4943e204d5 (diff)
Drop trycmd() from manila/utils.py
The function is not used anywhere. Change-Id: If3daf29df1e47974366b6e263827847683929489
Notes
Notes (review): Code-Review+2: Goutham Pacha Ravi <gouthampravi@gmail.com> Code-Review+2: Tom Barron <tpb@dyncloud.net> Code-Review+2: xing-yang <xingyang105@gmail.com> Workflow+1: xing-yang <xingyang105@gmail.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Fri, 04 Jan 2019 07:15:36 +0000 Reviewed-on: https://review.openstack.org/628172 Project: openstack/manila Branch: refs/heads/master
-rw-r--r--manila/utils.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/manila/utils.py b/manila/utils.py
index 7513e2e..1a38a4a 100644
--- a/manila/utils.py
+++ b/manila/utils.py
@@ -96,13 +96,6 @@ def execute(*cmd, **kwargs):
96 return processutils.execute(*cmd, **kwargs) 96 return processutils.execute(*cmd, **kwargs)
97 97
98 98
99def 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
106class SSHPool(pools.Pool): 99class SSHPool(pools.Pool):
107 """A simple eventlet pool to hold ssh connections.""" 100 """A simple eventlet pool to hold ssh connections."""
108 101