summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2016-01-29 23:50:00 +0100
committerJan Pokorný <jpokorny@redhat.com>2016-02-01 23:54:39 +0100
commit4ce864157ab0259d3a7a9440b7ca748f7de536f4 (patch)
treef48d0ba062fdead676fe210548ea689ac7494844
parent2f8648ca47ca52dc06262128b7154892b53618bd (diff)
downloadclufter-4ce864157ab0259d3a7a9440b7ca748f7de536f4.tar.gz
clufter-4ce864157ab0259d3a7a9440b7ca748f7de536f4.tar.xz
clufter-4ce864157ab0259d3a7a9440b7ca748f7de536f4.zip
ccs-flatten: inject also some resource meta-attributes back
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rw-r--r--__root__/ccs-flatten/restree.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/__root__/ccs-flatten/restree.c b/__root__/ccs-flatten/restree.c
index 96ddfee..57319e7 100644
--- a/__root__/ccs-flatten/restree.c
+++ b/__root__/ccs-flatten/restree.c
@@ -136,6 +136,13 @@ res_do_flatten(xmlNode ** xpp, xmlNode * rmp, resource_node_t * node, const char
}
}
+
+ /* also restore some meta-attributes */
+ if (node->rn_flags &= (RF_INDEPENDENT|RF_NON_CRITICAL)) {
+ xmlSetProp(n, (xmlChar *) "__independent_subtree",
+ (xmlChar *) (node->rn_flags&RF_NON_CRITICAL ? "2" : "1"));
+ }
+
if (!*xpp) {
/* Add top-level container */
*xpp = n;