From a99f2054f6c4b84fbe331484824345e4dff6e7c9 Mon Sep 17 00:00:00 2001 From: Nathaniel McCallum Date: Jul 09 2013 16:07:48 +0000 Subject: Fix client install exception if /etc/ssh is missing https://fedorahosted.org/freeipa/ticket/3766 --- diff --git a/ipa-client/ipa-install/ipa-client-install b/ipa-client/ipa-install/ipa-client-install index b188161..867307a 100755 --- a/ipa-client/ipa-install/ipa-client-install +++ b/ipa-client/ipa-install/ipa-client-install @@ -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'):