mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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:
parent
ff82c4c1e5
commit
2659fb0eb4
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user