mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-27 08:56:39 +00:00
Use the existing framework when running ssh_keygen
This commit is contained in:
@@ -450,9 +450,7 @@ class User(object):
|
||||
else:
|
||||
cmd.append('')
|
||||
|
||||
p = subprocess.Popen(cmd, shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||
(out, err) = p.communicate()
|
||||
rc = p.returncode
|
||||
(rc, out, err) = self.execute_command(cmd)
|
||||
if rc == 0:
|
||||
# If the keys were successfully created, we should be able
|
||||
# to tweak ownership.
|
||||
|
||||
Reference in New Issue
Block a user