| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Should be stand-alone for easier reusability in the future...
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
|
|
| |
Should be stand-alone for easier reusability in the future...
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
|
|
|
|
| |
This time when no common pair is found -- this also indicates an issue.
Solve it by putting artificial out-of-domain "sentinel" value to be
iterated over and possibly trigger the failure-case logic.
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
|
|
|
|
|
|
| |
Original code would not work for more occurrences of common pairs --
only the status of last evaluation would then be considered for general
failure case. Instead, short-circuit in case of OK case and end the
loop with failure (false) otherwise -- which will then be propagated
as a general loop status upon the end of non-short-circuited loop.
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
|
|
|
| |
... first check being that pcs commands after "auth" are run from actual
intended cluster node.
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
|
|
| |
See, e.g., "cibadmin -?".
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
|
|
| |
Also adjust the test case.
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
| |
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
| |
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
|
|
|
| |
Otherwise any further resource-related configuration changes will fall
apart.
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
| |
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
| |
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
| |
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
| |
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
| |
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
| |
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
| |
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
| |
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
| |
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
| |
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
| |
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Configurable via pcscmd_tmpcib value in command/filter context, feature
disabled when passing empty string.
Uses "pcs -f tmp-cib.xml ..." (per pcscmd_tmpcib value, this filename
is default) for various CIB manipulations, then it is pushed using
"pcs cluster cib-push tmp-cib.xml --config".
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
| |
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
|
|
|
|
| |
Also:
- turn off verbose output for the purpose of a unit test
- normalize commas in string interpolations for the snippets
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
|
|
|
|
| |
Also:
- output a new-line (as appropriate) + reflect it in the unit test
- turn off verbose output for the purpose of a unit test
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
| |
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
| |
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
|
|
|
|
| |
...into root (~first) template (or more generally, any top-level XSLT
instruction from def_first as prescribed by the respective filter
definition).
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
...for the same tag
from previous commit:
> ... should be only for clufter:descent-mix (seems really a bad idea
> for clufter:descent)
-> turn the exception just into info log message for clufter:descent-mix
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
|
|
|
| |
... should be only for clufter:descent-mix (seems really a bad idea for
clufter:descent).
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
|
|
|
|
|
|
| |
IOW, shallow/flat examination is not enough in that case. Some other
specialities, like xsl:variable, has to be taken into account as well.
For "to XSLT" experimental output (_xslt_template), at least, add a
comment explaining that situation is a little bit more complicated.
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
| |
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
|
|
|
|
| |
...standard way is to rely fully on flt_ctxt -- this is an injection
vector for convenient unit-testing (only) as also indicated by a
warning emitted when their presence is witnessed.
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
| |
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
|
|
|
|
|
| |
Simply because they are, by conventions, put last (lower priority as
these are quite generic -- as opposed to dedicated per-commands ones),
and we want them to be consistent, hence we drop support for short
options with them, which solves the problem.
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
|
|
| |
(leverage previously defined docformat decorator)
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
| |
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
| |
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
|
|
|
| |
Because we need to pass extra piece of information to the responsible
function, it cannot be arranged as a property any longer.
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
| |
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
| |
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
| |
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
| |
IIRC, this is related to "filters/cib2pcscmd[group]" case where usage of
a parameter (presumably propagated from def_first) was attempted but did
not really worked with original descent-mix (hence text-only descent was
deemed a quick fix). This patch should be a much better solution to
that very problem ... so flip these "clufter:descent" instructions as
well.
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
| |
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
| |
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
| |
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
| |
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
|
|
| |
(see https://bugzilla.redhat.com/1223404)
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
| |
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|
|
|
|
| |
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
|