diff options
author | Scott Moser <smoser@ubuntu.com> | 2012-06-13 09:11:27 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2012-06-13 09:11:27 -0400 |
commit | e99cf80f5881abc10ebcd8927adf16bd14f3045a (patch) | |
tree | 0f05b9a7fa2a71d2fa5ffa820d3cf2e5e4c64069 /cloudinit | |
parent | a0d7802c3164727abac9cb1066e5248aa5b1adf4 (diff) | |
parent | 3d9fdca212c011297523eed2d845ac04b7cffa76 (diff) | |
download | vyos-cloud-init-e99cf80f5881abc10ebcd8927adf16bd14f3045a.tar.gz vyos-cloud-init-e99cf80f5881abc10ebcd8927adf16bd14f3045a.zip |
Use --quiet when running apt-get
Use the --quiet switch when running apt-get to get output suitable for
logging, rather than with pretty progress updates designed for interactive
use. This makes the log, as returned by GetConsoleOutput for instance, a
little shorter and easier to read. Some action completion notices are also
missed, but it's pretty clear still as no error output appears before
cloud-init goes on to the next thing.
Mer apt-get man page:
Quiet; produces output suitable for logging, omitting progress indicators.
LP: #1012613
Diffstat (limited to 'cloudinit')
-rw-r--r-- | cloudinit/CloudConfig/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/CloudConfig/__init__.py b/cloudinit/CloudConfig/__init__.py index a16bdde6..d2d1035a 100644 --- a/cloudinit/CloudConfig/__init__.py +++ b/cloudinit/CloudConfig/__init__.py @@ -260,7 +260,7 @@ def apt_get(tlc, args=None): e = os.environ.copy() e['DEBIAN_FRONTEND'] = 'noninteractive' cmd = ['apt-get', '--option', 'Dpkg::Options::=--force-confold', - '--assume-yes', tlc] + '--assume-yes', '--quiet', tlc] cmd.extend(args) subprocess.check_call(cmd, env=e) |