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 22:02:54 -04:00
committed by Rob Crittenden
parent f42da4357e
commit 6c9b6548cc
+1 -1
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):