diff options
author | Till Riedel <riedel@teco.edu> | 2020-11-17 20:54:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-17 14:54:14 -0500 |
commit | a925b5a0ca4aa3e63b084c0f6664fe815c2c9db0 (patch) | |
tree | b77aebe7b49e703c6d8724b679cb1cb28a2d7b12 /cloudinit/gpg.py | |
parent | eeef783b0322d99840f39a58de052772afefe822 (diff) | |
download | vyos-cloud-init-a925b5a0ca4aa3e63b084c0f6664fe815c2c9db0.tar.gz vyos-cloud-init-a925b5a0ca4aa3e63b084c0f6664fe815c2c9db0.zip |
add --no-tty option to gpg (#669)
Make sure that gpg works even if the instance has no /dev/tty. This has
been observed on Debian.
LP: #1813396
Diffstat (limited to 'cloudinit/gpg.py')
-rw-r--r-- | cloudinit/gpg.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/gpg.py b/cloudinit/gpg.py index be0ca0ea..3780326c 100644 --- a/cloudinit/gpg.py +++ b/cloudinit/gpg.py @@ -42,7 +42,7 @@ def recv_key(key, keyserver, retries=(1, 1)): @param retries: an iterable of sleep lengths for retries. Use None to indicate no retries.""" LOG.debug("Importing key '%s' from keyserver '%s'", key, keyserver) - cmd = ["gpg", "--keyserver=%s" % keyserver, "--recv-keys", key] + cmd = ["gpg", "--no-tty", "--keyserver=%s" % keyserver, "--recv-keys", key] if retries is None: retries = [] trynum = 0 |