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 2008-08-19 16:39:33 -04:00
parent ff82c4c1e5
commit 2659fb0eb4
2 changed files with 2 additions and 1 deletions

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"

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