mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fixed add_key stalling indefinitely, and test code leaking into production setting
This commit is contained in:
parent
58618474db
commit
05f5b5b279
1 changed files with 7 additions and 7 deletions
|
@ -105,7 +105,7 @@ def download_key(url):
|
||||||
|
|
||||||
|
|
||||||
def add_key(key):
|
def add_key(key):
|
||||||
return call("apt-key add -", shell=True, stdin=PIPE, stdout=PIPE, stderr=PIPE)
|
p = Popen("apt-key add -", shell=True, stdin=PIPE, stdout=PIPE, stderr=PIPE)
|
||||||
(_, _) = p.communicate(key)
|
(_, _) = p.communicate(key)
|
||||||
|
|
||||||
return p.returncode == 0
|
return p.returncode == 0
|
||||||
|
|
Loading…
Reference in a new issue