mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-04 04:12:48 +00:00
Still more shell fixes.
This commit is contained in:
@@ -131,7 +131,7 @@ def all_keys(module, keyring):
|
||||
return results
|
||||
|
||||
def key_present(module, key_id):
|
||||
(rc, out, err) = module.run_command("apt-key list | 2>&1 grep -i -q %s" % key_id)
|
||||
(rc, out, err) = module.run_command("apt-key list | 2>&1 grep -i -q %s" % pipes.quote(key_id), use_unsafe_shell=True)
|
||||
return rc == 0
|
||||
|
||||
def download_key(module, url):
|
||||
|
||||
Reference in New Issue
Block a user