summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathaniel McCallum <npmccallum@redhat.com>2013-07-03 15:52:15 -0400
committerRob Crittenden <rcritten@redhat.com>2013-07-09 12:07:25 -0400
commit784f484cad5f823d0a56dbcaa8f71d1fef4286b9 (patch)
tree1fa4e30c00a06e4ee64287ad19b43aed78a9d4ec
parent9f223871a77dfb2f16680036c4662352d56e0c10 (diff)
downloadfreeipa-784f484cad5f823d0a56dbcaa8f71d1fef4286b9.zip
freeipa-784f484cad5f823d0a56dbcaa8f71d1fef4286b9.tar.gz
freeipa-784f484cad5f823d0a56dbcaa8f71d1fef4286b9.tar.xz
Fix client install exception if /etc/ssh is missing
https://fedorahosted.org/freeipa/ticket/3766
-rwxr-xr-xipa-client/ipa-install/ipa-client-install3
1 files changed, 3 insertions, 0 deletions
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'):