Fix client install exception if /etc/ssh is missing

https://fedorahosted.org/freeipa/ticket/3766
This commit is contained in:
Nathaniel McCallum 2013-07-03 15:52:15 -04:00 committed by Rob Crittenden
parent 9f223871a7
commit 784f484cad

View File

@ -1411,6 +1411,9 @@ def client_dns(server, hostname, dns_updates=False):
update_dns(server, hostname)
def update_ssh_keys(server, hostname, ssh_dir, create_sshfp):
if not os.path.isdir(ssh_dir):
return
pubkeys = []
for basename in os.listdir(ssh_dir):
if not basename.endswith('.pub'):