Permalink
Browse files

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
  • Loading branch information...
russellb committed Jan 31, 2012
1 parent fe56d3c commit d22b0210b0c4ef80b64531e6826985341e9af838
Showing with 1 addition and 6 deletions.
  1. +1 −1 nova/crypto.py
  2. +0 −5 nova/utils.py
View
@@ -119,7 +119,7 @@ def ensure_ca_filesystem():
if not os.path.exists(ca_dir):
os.makedirs(ca_dir)
os.chdir(ca_dir)
utils.runthis(_("Generating root CA: %s"), "sh", genrootca_sh_path)
utils.execute("sh", genrootca_sh_path)
os.chdir(start)
View
@@ -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)]

0 comments on commit d22b021

Please sign in to comment.