Don't remove /tmp when removing temp cert dir

If /tmp happens to be empty os.removedirs() happily removes it...

https://fedorahosted.org/freeipa/ticket/1843
This commit is contained in:
Marko Myllynen 2011-09-22 19:41:50 +03:00 committed by Rob Crittenden
parent f42da4357e
commit 6c9b6548cc

View File

@ -280,7 +280,7 @@ class IPADiscovery:
finally:
os.remove("%s/ca.crt" % temp_ca_dir)
os.removedirs(temp_ca_dir)
os.rmdir(temp_ca_dir)
def ipadnssearchldap(self, tdomain):