diff options
author | Scott Moser <smoser@ubuntu.com> | 2013-03-19 09:09:20 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2013-03-19 09:09:20 -0400 |
commit | 6591a7d35add188536dc9db1db0b9ceeaed887d7 (patch) | |
tree | 99154cc36176c50920a30d325153f6e3d3adff72 /cloudinit/util.py | |
parent | a904de054f7818137c864e0f3ff728b3764cf457 (diff) | |
parent | f8318f8eec9c8f1c1676ce6a5b5c2c77fa2f7cc5 (diff) | |
download | vyos-cloud-init-6591a7d35add188536dc9db1db0b9ceeaed887d7.tar.gz vyos-cloud-init-6591a7d35add188536dc9db1db0b9ceeaed887d7.zip |
merge from trunk rev 800
Diffstat (limited to 'cloudinit/util.py')
-rw-r--r-- | cloudinit/util.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cloudinit/util.py b/cloudinit/util.py index c961bbc7..52b528ea 100644 --- a/cloudinit/util.py +++ b/cloudinit/util.py @@ -487,7 +487,7 @@ def redirect_output(outfmt, errfmt, o_out=None, o_err=None): new_fp = open(arg, owith) elif mode == "|": proc = subprocess.Popen(arg, shell=True, stdin=subprocess.PIPE) - new_fp = proc.stdin + new_fp = proc.stdin # pylint: disable=E1101 else: raise TypeError("Invalid type for output format: %s" % outfmt) @@ -509,7 +509,7 @@ def redirect_output(outfmt, errfmt, o_out=None, o_err=None): new_fp = open(arg, owith) elif mode == "|": proc = subprocess.Popen(arg, shell=True, stdin=subprocess.PIPE) - new_fp = proc.stdin + new_fp = proc.stdin # pylint: disable=E1101 else: raise TypeError("Invalid type for error format: %s" % errfmt) @@ -1478,7 +1478,7 @@ def subp(args, data=None, rcs=None, env=None, capture=True, shell=False, (out, err) = sp.communicate(data) except OSError as e: raise ProcessExecutionError(cmd=args, reason=e) - rc = sp.returncode + rc = sp.returncode # pylint: disable=E1101 if rc not in rcs: raise ProcessExecutionError(stdout=out, stderr=err, exit_code=rc, |