From 02d4b30a9da26f38ae12253e568fd872a174d222 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Tue, 31 Jan 2012 14:48:12 -0500 Subject: [PATCH] Remove utils.runthis(). Fixes bug 884825. The bug was pointing out some unused variables noticed by pylint. utils.runthis() was only used in one place and doesn't really provide much value over utils.execute(), so just remove it. Change-Id: I3dcc34bd840a128418b58a8a66acb62adf3fc9cc --- nova/utils.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/nova/utils.py b/nova/utils.py index 818dc2b73..791c63167 100644 --- a/nova/utils.py +++ b/nova/utils.py @@ -338,11 +338,6 @@ def debug(arg): return arg -def runthis(prompt, *cmd, **kwargs): - LOG.debug(_('Running %s'), (' '.join(cmd))) - rv, err = execute(*cmd, **kwargs) - - def generate_uid(topic, size=8): characters = '01234567890abcdefghijklmnopqrstuvwxyz' choices = [random.choice(characters) for x in xrange(size)]