diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2015-12-04 15:59:56 +0100 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2015-12-17 23:36:16 +0100 |
commit | 34592f289fa9a62e4f1fe6b081a875186d599eb7 (patch) | |
tree | 87e49f6b0e1afd5720fd90323ef05dfb65413831 /filters | |
parent | b18e98f391fcb88c7bbdf29c516ce5de5d55b39b (diff) | |
download | clufter-34592f289fa9a62e4f1fe6b081a875186d599eb7.tar.gz clufter-34592f289fa9a62e4f1fe6b081a875186d599eb7.tar.xz clufter-34592f289fa9a62e4f1fe6b081a875186d599eb7.zip |
filters/cib2pcscmd[resources]: terminate if "template" observed
+ point the user to the root cause. It makes no sense and could be
pretty misleading when we cannot produce templates via pcs while these
are vital for the dependent resources to work properly.
True to be told, template + resource(s) can always be expressed as
fully-fledged resource (with parameters transferred down to resource
following the same [intuitive] logic) but that would defeat why this
provision was introduced in the first place, wouldn't it?
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'filters')
-rw-r--r-- | filters/cib/configuration/resources/__init__.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/filters/cib/configuration/resources/__init__.py b/filters/cib/configuration/resources/__init__.py index d655f66..9865f7d 100644 --- a/filters/cib/configuration/resources/__init__.py +++ b/filters/cib/configuration/resources/__init__.py @@ -417,6 +417,12 @@ cib2pcscmd = ('''\ <!-- groups --> <clufter:descent-mix at="group"/> + <!-- templates --> + <xsl:if test="template"> + <xsl:message terminate="true" + >Cannot convert templates to pcs commands yet [https://bugzilla.redhat.com/1281359]</xsl:message> + </xsl:if> + ''') % dict( NL=NL, ) |