On 29/03/12 11:57, Razi Khaja wrote:
I am using the master branch as well from github.
Razi
then this has been introduced since the version I'm using (admittedly
part of RHN satellite, so not really very current at all)
browsing the source on the home cobbler server (which is also upstream
master), this is where the problem lies, as I see it:
##########################
def find_kickstart(url):
"""
Check if a kickstart url looks like an http, ftp, nfs or local path.
If a local path is used, cobbler will copy the kickstart and serve
it over http.
Return None if the url format does not look valid.
"""
if url is None:
return None
x = url.lower().lstrip()
for y in ["http://", "nfs://", "ftp://",
"/"]:
if x.startswith(y):
if x.startswith("/") and not os.path.isfile(x):
return None
return x
return None
###########################
We are automatically lower-casing kickstart names before searching, so
of course this doesn't work, unless we accidentally happen to have a
non-uppercased match available in the same directory (Which would be
odd, tbh)
Anyone know why we do that? It seems curious to me.
Stuart
--
Stuart Sears RHCA etc.
"It's today!" said Piglet.
"My favourite day," said Pooh.