Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
filters/ccsflat2cibprelude[named]: enable conversion
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1201278 Reported-by: Patrik Hagara <phagara@redhat.com> Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| # -*- coding: UTF-8 -*- | ||
| # Copyright 2015 Red Hat, Inc. | ||
| # Part of clufter project | ||
| # Licensed under GPLv2+ (a copy included | http://gnu.org/licenses/gpl-2.0.txt) | ||
| __author__ = "Jan Pokorný <jpokorny @at@ Red Hat .dot. com>" | ||
|
|
||
| from ....utils_cib import ResourceSpec, rg2hb_xsl | ||
|
|
||
|
|
||
| ccsflat2cibprelude = '''\ | ||
| <!-- | ||
| named ~ named | ||
| --> | ||
| <xsl:when test="name() = 'named'"> | ||
| ''' + ( | ||
| ResourceSpec('ocf:heartbeat:named').xsl_attrs | ||
| ) + ''' | ||
| <!-- INSTANCE_ATTRIBUTES --> | ||
| <instance_attributes id="{concat($Prefix, '-ATTRS')}"> | ||
| ''' + ( | ||
| rg2hb_xsl('named_config', 'config_file') | ||
| + | ||
| rg2hb_xsl('named_options', 'named_options') | ||
| ) + '''\ | ||
| </instance_attributes> | ||
| <!-- OPERATIONS --> | ||
| <operations> | ||
| ''' + ( | ||
| rg2hb_xsl('stop', 'shutdown_wait', op=True) | ||
| ) + '''\ | ||
| </operations> | ||
| </xsl:when> | ||
| ''' |