summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2016-09-23 13:06:48 +1000
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2016-10-11 14:39:42 +1100
commitf64638f5a4f159297a74df9329afc6e73acf6d6b (patch)
treea4041d21cafe4e3621612ec976f436eb1996809d /utils
parentde2f990a98718d15bff074b9ae65f2eb92a2f938 (diff)
downloadtalos-petitboot-f64638f5a4f159297a74df9329afc6e73acf6d6b.tar.gz
talos-petitboot-f64638f5a4f159297a74df9329afc6e73acf6d6b.zip
discover/pxe-parser: Parse only the first configv1.3.1
Commit 2163af5 "discover/pxe-parser: Retrieve configs asynchronously" added asynchronous loading of remote pxe filenames, but made an unintended change in behaviour to the PXE parser. Previously the parser would try a list of possible filenames, and parse the first one it found. However the above commit spawns an asynchronous job for every filename, and parses any that can be retrieved. It is a common configuration to have a machine-specific config and a 'fallback' default config, and the change means we could erroneously retrieve and parse both configs. Update the PXE parser so that asynchronous jobs are spawned sequentially. That is, spawn a job for the first filename and if not successful spawn another job for the next filename, and so on. Once a remote config is successfully retrieved, parse it and stop. Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'utils')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud