diff options
author | Scott Moser <smoser@ubuntu.com> | 2012-08-22 21:20:34 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2012-08-22 21:20:34 -0400 |
commit | 2de30c15e706a9610c19979886f13addecf7ea1b (patch) | |
tree | fc0dc5441f5a280ca9b73f16e7809bde62acf00c /cloudinit/util.py | |
parent | d59ab509f6482b8b3af4fd9f2728ad1209d5b2e2 (diff) | |
download | vyos-cloud-init-2de30c15e706a9610c19979886f13addecf7ea1b.tar.gz vyos-cloud-init-2de30c15e706a9610c19979886f13addecf7ea1b.zip |
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
Diffstat (limited to 'cloudinit/util.py')
-rw-r--r-- | cloudinit/util.py | 7 |
1 files changed, 4 insertions, 3 deletions
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 |