Use the existing framework when running ssh_keygen
This commit is contained in:
parent
eecf6cf94f
commit
ed5bf78485
1 changed files with 1 additions and 3 deletions
4
user
4
user
|
@ -450,9 +450,7 @@ class User(object):
|
||||||
else:
|
else:
|
||||||
cmd.append('')
|
cmd.append('')
|
||||||
|
|
||||||
p = subprocess.Popen(cmd, shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
(rc, out, err) = self.execute_command(cmd)
|
||||||
(out, err) = p.communicate()
|
|
||||||
rc = p.returncode
|
|
||||||
if rc == 0:
|
if rc == 0:
|
||||||
# If the keys were successfully created, we should be able
|
# If the keys were successfully created, we should be able
|
||||||
# to tweak ownership.
|
# to tweak ownership.
|
||||||
|
|
Loading…
Reference in a new issue