summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2014-04-25 23:37:59 +0200
committerJan Pokorný <jpokorny@redhat.com>2014-04-25 23:42:42 +0200
commit3ecd69537eb8f729cea2263350b9149e79df296c (patch)
tree6aad97be879a0d63d73d681b92fa3ca286c0ba90 /commands
parent200578642fcdc77be9549a31f7ea5730546e8768 (diff)
downloadclufter-3ecd69537eb8f729cea2263350b9149e79df296c.tar.gz
clufter-3ecd69537eb8f729cea2263350b9149e79df296c.tar.xz
clufter-3ecd69537eb8f729cea2263350b9149e79df296c.zip
commands/ccs_revitalize: new single filter command
Currently @domain -> @port for fence_xvm FA: idea is to simplify processing in downstream filters which would otherwise have to be encumbered with the additional complexity, not distant from the one of this new filter. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'commands')
-rw-r--r--commands/ccs_revitalize.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/commands/ccs_revitalize.py b/commands/ccs_revitalize.py
new file mode 100644
index 0000000..85d84ed
--- /dev/null
+++ b/commands/ccs_revitalize.py
@@ -0,0 +1,24 @@
+# -*- coding: UTF-8 -*-
+# Copyright 2014 Red Hat, Inc.
+# Part of clufter project
+# Licensed under GPLv2+ (a copy included | http://gnu.org/licenses/gpl-2.0.txt)
+"""ccs-revitalize command"""
+__author__ = "Jan Pokorný <jpokorny @at@ Red Hat .dot. com>"
+
+from ..command import Command
+
+
+@Command.deco('ccs-revitalize')
+def ccs_revitalize(cmd_ctxt,
+ input="/etc/cluster/cluster.conf",
+ output="./cluster.conf"):
+ """Migrate deprecated config's props (agent params, etc.)
+
+ Options:
+ input input CMAN-based cluster configuration file
+ output output file with "revitalized" content
+ """
+ return (
+ ('file', input),
+ ('file', output)
+ )