Minor bugs found while testing stuff.

- wrong import in certs.py makes ipa-replica-manage fail
- close the fs after the stash file is written so that the file is updated
  immediately and not when the fd is garbage collected
This commit is contained in:
Simo Sorce committed 2008-08-21 11:04:52 -04:00
1 parent ff82c4c1e5
commit 2659fb0eb4
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -21,9 +21,9 @@ import os, stat, subprocess, re
import sha
import errno
import tempfile
import shutil
from ipa import sysrestore
from ipa import shutil
from ipa import ipautil
CA_SERIALNO="/var/lib/ipa/ca_serialno"
+1
View File
@@ -330,6 +330,7 @@ class KrbInstance(service.Service):
try:
fd = open("/var/kerberos/krb5kdc/.k5."+self.realm, "w")
fd.write(s)
fd.close()
except os.error, e:
logging.critical("failed to write stash file")
raise e