From ed5bf7848535c6b54a07e966d3b4da3cdd0b5a3b Mon Sep 17 00:00:00 2001 From: Nigel Metheringham Date: Sun, 4 Nov 2012 09:47:30 +0000 Subject: [PATCH] Use the existing framework when running ssh_keygen --- user | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/user b/user index c699f8db136..7bd7c5a89ff 100755 --- a/user +++ b/user @@ -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.