]> xenbits.xensource.com Git - libvirt.git/commit
conf: set postParseFailed even without ALLOW_POST_PARSE_FAIL
authorJán Tomko <jtomko@redhat.com>
Fri, 2 Mar 2018 14:12:49 +0000 (15:12 +0100)
committerJán Tomko <jtomko@redhat.com>
Mon, 5 Mar 2018 12:25:20 +0000 (13:25 +0100)
commit444f15adb8cda879e16c02abfa685c787ab1ca44
tree33d4af9da577f9dee7ef617ec0ff4d54926db94e
parentdc824c61287d3a1ae7fec8ff305286e610537289
conf: set postParseFailed even without ALLOW_POST_PARSE_FAIL

We allow the postParse callbacks to fail for some reasons (missing
emulator binary) when parsing the configs from /etc/libvirt.
In that case, def->postParseFailed is set to true and the post
parse callbacks are re-executed on domain startup.

However this bool was only set when virDomainDefPostParse was called
with the ALLOW_POST_PARSE_FAIL flag set. If the callback failed
again on domain startup, the bool would be reset and subsequent
startups would not attempt to reexecute the callback.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
src/conf/domain_conf.c