[node-patches] Change in ovirt-node[master]: edit-node:miss to set a public key for the "root" user
hadong0720 at gmail.com
hadong0720 at gmail.com
Thu Jun 12 08:13:39 UTC 2014
hadong has uploaded a new change for review.
Change subject: edit-node:miss to set a public key for the "root" user
......................................................................
edit-node:miss to set a public key for the "root" user
Change-Id: Ia4443cb9823334bc901ace8725494fb5f00dc20d
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1108536
Signed-off-by: hadong <hadong at redhat.com>
---
M tools/edit-node
1 file changed, 4 insertions(+), 4 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/29/28629/1
diff --git a/tools/edit-node b/tools/edit-node
index ee2a8c3..b65cb09 100755
--- a/tools/edit-node
+++ b/tools/edit-node
@@ -1194,10 +1194,10 @@
home = "/home/%s/.ssh" % user
if not os.path.exists(self._instroot + home):
os.system("mkdir -p %s%s" % (self._instroot, home))
- k = open(keyfile).read()
- f = open(self._instroot + home + "/authorized_keys", "a")
- f.write(k)
- f.close()
+ k = open(keyfile).read()
+ f = open(self._instroot + home + "/authorized_keys", "a")
+ f.write(k)
+ f.close()
def _rebuild_initramfs(self):
print("Creating initramfs")
--
To view, visit http://gerrit.ovirt.org/28629
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia4443cb9823334bc901ace8725494fb5f00dc20d
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: hadong <hadong0720 at gmail.com>
More information about the node-patches
mailing list