From 784f484cad5f823d0a56dbcaa8f71d1fef4286b9 Mon Sep 17 00:00:00 2001 From: Nathaniel McCallum Date: Wed, 3 Jul 2013 15:52:15 -0400 Subject: Fix client install exception if /etc/ssh is missing https://fedorahosted.org/freeipa/ticket/3766 --- ipa-client/ipa-install/ipa-client-install | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ipa-client/ipa-install') diff --git a/ipa-client/ipa-install/ipa-client-install b/ipa-client/ipa-install/ipa-client-install index b1881619d..867307aa5 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'): -- cgit