]> xenbits.xensource.com Git - libvirt.git/commit
nwfilter: Move save of config until after successful assign
authorJohn Ferlan <jferlan@redhat.com>
Thu, 20 Apr 2017 15:51:22 +0000 (11:51 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 26 Apr 2017 17:13:18 +0000 (13:13 -0400)
commitb3e71a8830b2683ee88fa10cb048eabb99a446c0
tree1c03cc83023fb31fa28ff98d9d621d233d2e7a6b
parent245f1d8521a473561fdef696b34bffecc5e18f18
nwfilter: Move save of config until after successful assign

Only save the config when using a generated UUID if we were able to
create an object for the def. There could have been "other reasons"
for the assignment to fail, so saving the config could be incorrect.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/conf/virnwfilterobj.c