From 2de30c15e706a9610c19979886f13addecf7ea1b Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Wed, 22 Aug 2012 21:20:34 -0400 Subject: fix issues from 'make pylint' In an effort to pylint errors about NonImlementedError and add_default_user, I moved this method to distro and genericized it. Now, assuming a sane 'create_user' for the distro, this should work. Also: * removed the unused set_configured_user method --- cloudinit/util.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'cloudinit/util.py') diff --git a/cloudinit/util.py b/cloudinit/util.py index 7f47341a..6872cc31 100644 --- a/cloudinit/util.py +++ b/cloudinit/util.py @@ -1330,7 +1330,8 @@ def delete_dir_contents(dirname): del_file(node_fullpath) -def subp(args, data=None, rcs=None, env=None, capture=True, shell=False, logstring=False): +def subp(args, data=None, rcs=None, env=None, capture=True, shell=False, + logstring=False): if rcs is None: rcs = [0] try: @@ -1339,8 +1340,8 @@ def subp(args, data=None, rcs=None, env=None, capture=True, shell=False, logstri LOG.debug(("Running command %s with allowed return codes %s" " (shell=%s, capture=%s)"), args, rcs, shell, capture) else: - LOG.debug(("Running hidden command to protect sensitive input/output " - " logstring: %s"), logstring) + LOG.debug(("Running hidden command to protect sensitive " + "input/output logstring: %s"), logstring) if not capture: stdout = None -- cgit v1.2.3