summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/server/replicainstall.py
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2016-10-27 09:23:22 +0200
committerJan Cholasta <jcholast@redhat.com>2016-11-11 12:17:25 +0100
commita641e279ff76e09f59c4d5fef1dc1f9355dbacf7 (patch)
treedda2f55355b64d028c42cbcb88ff4281f1b6329d /ipaserver/install/server/replicainstall.py
parent8c742b1539591b49474fe8ec871e1b523e9898bd (diff)
downloadfreeipa-a641e279ff76e09f59c4d5fef1dc1f9355dbacf7.tar.gz
freeipa-a641e279ff76e09f59c4d5fef1dc1f9355dbacf7.tar.xz
freeipa-a641e279ff76e09f59c4d5fef1dc1f9355dbacf7.zip
install: improve CLI positional argument handling
Instead of specifying which knobs should be positional arguments in cli.install_tool(), do it using a flag in knob definition, where the rest of CLI configuration is. As a side effect, the usage string for CLI tools can now be generated automatically. https://fedorahosted.org/freeipa/ticket/6392 Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'ipaserver/install/server/replicainstall.py')
-rw-r--r--ipaserver/install/server/replicainstall.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ipaserver/install/server/replicainstall.py b/ipaserver/install/server/replicainstall.py
index 770688c1d..537f7dfbd 100644
--- a/ipaserver/install/server/replicainstall.py
+++ b/ipaserver/install/server/replicainstall.py
@@ -1444,6 +1444,8 @@ class Replica(BaseServer):
replica_file = Knob(
str, None,
description="a file generated by ipa-replica-prepare",
+ cli_positional=True,
+ cli_name='replica_file',
)
setup_ca = Knob(BaseServer.setup_ca)