[pve-devel] r6497 - pve-cluster/trunk/data/PVE
svn-commits at proxmox.com
svn-commits at proxmox.com
Thu Aug 18 13:15:41 CEST 2011
Author: dietmar
Date: 2011-08-18 13:15:41 +0200 (Thu, 18 Aug 2011)
New Revision: 6497
Modified:
pve-cluster/trunk/data/PVE/Cluster.pm
Log:
Modified: pve-cluster/trunk/data/PVE/Cluster.pm
===================================================================
--- pve-cluster/trunk/data/PVE/Cluster.pm 2011-08-18 11:13:22 UTC (rev 6496)
+++ pve-cluster/trunk/data/PVE/Cluster.pm 2011-08-18 11:15:41 UTC (rev 6497)
@@ -927,10 +927,12 @@
# remove duplicate keys in $sshauthkeys
# ssh-copy-id simply add keys, so the file can grow to large
+ my $data = '';
+ if (-f $sshauthkeys) {
+ $data = PVE::Tools::file_get_contents($sshauthkeys, 128*1024);
+ chomp($data);
+ }
- my $data = PVE::Tools::file_get_contents($sshauthkeys, 128*1024);
- chomp($data);
-
# always add ourself
if (-f $ssh_rsa_id) {
my $pub = PVE::Tools::file_get_contents($ssh_rsa_id);
More information about the pve-devel
mailing list