summaryrefslogtreecommitdiffstats
path: root/tools/enable-pre-commit-hook.sh
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2012-06-19 14:22:44 +0100
committerDaniel P. Berrange <berrange@redhat.com>2012-06-19 15:01:28 +0100
commite88780a5ddbba230b500052391c1ba64b67e6a22 (patch)
treee42e601cfa1156d6582479d713d228651fd33e3a /tools/enable-pre-commit-hook.sh
parent225f6f21b1f4158e635f06b4d040b41fa21be09d (diff)
downloadnova-e88780a5ddbba230b500052391c1ba64b67e6a22.tar.gz
nova-e88780a5ddbba230b500052391c1ba64b67e6a22.tar.xz
nova-e88780a5ddbba230b500052391c1ba64b67e6a22.zip
Adjust the libvirt config classes' API contract for parsing
Don't not automatically invoke the 'parse_dom' method from the LibvirtConfigObject constructor, because this is too early in construction - no child class constructors have initialized yet. Instead require the 'parse_dom' method to be invoked after the bare object has been constructed. Also make the default impl of 'parse_dom' take an etree.Element instance and validate its root element name. Add a convenient 'parse_str' method for turning a XML string into an etree.Element instance & parsing it. Change-Id: I7eda2b59869f3b4ef9dce1602cbb05f7662f4528 Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'tools/enable-pre-commit-hook.sh')
0 files changed, 0 insertions, 0 deletions