summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ipa-server/ipaserver/certs.py2
-rw-r--r--ipa-server/ipaserver/krbinstance.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/ipa-server/ipaserver/certs.py b/ipa-server/ipaserver/certs.py
index 886632dab..8cb1d0883 100644
--- a/ipa-server/ipaserver/certs.py
+++ b/ipa-server/ipaserver/certs.py
@@ -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"
diff --git a/ipa-server/ipaserver/krbinstance.py b/ipa-server/ipaserver/krbinstance.py
index 3981da9f7..4cdb801ee 100644
--- a/ipa-server/ipaserver/krbinstance.py
+++ b/ipa-server/ipaserver/krbinstance.py
@@ -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