Bug#868267: fai-client: fetch-basefile breaks for hostnames with hyphens
abezella at archive.org
Thu Jul 27 20:42:56 CEST 2017
thanks for following up on this!
i think the stripping of the file extension (line 47 in the old code)
needs to be added back in, otherwise the defined classes would have to
match the basefile+extension:
i also noticed that one problem with this approach is that it does
limit the basefiles to short hostnames. but that's not new and seems
like an edge case.
On Thu, 2017-07-27 at 11:45 +0200, Thomas Lange wrote:
> I have patched fetch-basefile so this should now work as
> expected. Instead of an eval and indirect shell variables, I just use
> an array and loop over this. No performce penalty unless you have
> thousands of classes defined for a client and a million of base files
> Here are the diffs:
> So, I think currently there's no need to substitute hyphen and dot
> with underscore for the FAI class names and we can leave this
> unchanged. But I will improve the documentation about class names.
andrew bezella <abezella at archive.org>
More information about the linux-fai