From: Sebastian Harl Date: Mon, 28 Sep 2015 20:07:08 +0000 (+0200) Subject: store_json: Fix parent/child detection. X-Git-Tag: sysdb-0.8.0~22 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;ds=sidebyside;h=79debed9dacc5d48386124a1ee9a3f7be655fdf6;hp=79debed9dacc5d48386124a1ee9a3f7be655fdf6;p=sysdb.git store_json: Fix parent/child detection. Rewinding the formatter state has to happen any time we see a parent object of the current object. This happens every time the current context isn't HOST (hosts don't have any parents) or the new object is an ATTRIBUTE (which are always children of whatever other object type). This broke in 3603db13105aefac4d6ceb356bcfd118a92fa654. ---