Tim Verhoeven wrote:
Hi,
I've just upgraded my Cobbler installation to 1.6.2. I've then tried
importing the just released CentOS 5.3 and I get this error :
Hi Tim,
This has happened before where folks have tried to import something and
it is missing the .discinfo file. (Was this a DVD import?). A missing
discinfo
is the root cause of this bug, but we can patch it to tolerate when this
file is missing. I'll include this for 1.6.3 when it comes out.
I'd be curious if you have any other problems with 5.3 after importing
this, as I haven't yet tried the CentOS 5.3 ISOs. Hopefully the
structure is as
we would suspect -- if not, we'll take care of it.
Thanks!
--Michael
diff --git a/cobbler/action_import.py b/cobbler/action_import.py
index e811c11..eb433da 100644
--- a/cobbler/action_import.py
+++ b/cobbler/action_import.py
@@ -1059,6 +1059,8 @@ class RedHatImporter ( BaseImporter ) :
discinfo = open("%s/.discinfo" % base, "r")
datestamp = discinfo.read().split("\n")[0]
discinfo.close()
+ else:
+ return 0
return float(datestamp)
def set_variance(self, flavor, major, minor, arch):