Bryan Kearney wrote:
From: root <root(a)localhost.localdomain>
---
cobbler/api.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cobbler/api.py b/cobbler/api.py
index 1f4ab2e..810d555 100644
--- a/cobbler/api.py
+++ b/cobbler/api.py
@@ -119,7 +119,7 @@ class BootAPI:
API instance, regardless of the serializer type.
"""
if not os.path.exists("/var/lib/cobbler/.mtime"):
- fd = open("/var/lib/cobbler/.mtime")
+ fd = open("/var/lib/cobbler/.mtime", "w")
fd.write("0")
fd.close()
return 0
Applied to devel, thanks!