summaryrefslogtreecommitdiffstats
path: root/ipaclient/plugins/migration.py
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2016-06-01 15:58:47 +0200
committerJan Cholasta <jcholast@redhat.com>2016-06-03 09:00:34 +0200
commit2f7df393fd17b115112c39c714cc6c9b0b37460c (patch)
tree721c48e80f6511c39ab80fc8076f49fef1a2c63b /ipaclient/plugins/migration.py
parent875801d1d9406af6bcd4281962121f04b90287b7 (diff)
downloadfreeipa-2f7df393fd17b115112c39c714cc6c9b0b37460c.tar.gz
freeipa-2f7df393fd17b115112c39c714cc6c9b0b37460c.tar.xz
freeipa-2f7df393fd17b115112c39c714cc6c9b0b37460c.zip
ipalib: move File command arguments to ipaclient
File arguments are relevant only on the client, on the server they are the same as Str. Specify the arguments as Str in ipalib.plugins and override them with File in ipaclient.plugins. https://fedorahosted.org/freeipa/ticket/4739 Reviewed-By: David Kupka <dkupka@redhat.com>
Diffstat (limited to 'ipaclient/plugins/migration.py')
-rw-r--r--ipaclient/plugins/migration.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/ipaclient/plugins/migration.py b/ipaclient/plugins/migration.py
index 1a184b963..b40ddfd80 100644
--- a/ipaclient/plugins/migration.py
+++ b/ipaclient/plugins/migration.py
@@ -20,6 +20,7 @@
import six
from ipaclient.frontend import CommandOverride
+from ipalib.parameters import File
from ipalib.plugable import Registry
from ipalib import _
@@ -43,6 +44,12 @@ with clear text passwords. All migrated users need to
login at https://your.domain/ipa/migration/ before they
can use their Kerberos accounts.''')
+ def get_options(self):
+ for option in super(migrate_ds, self).get_options():
+ if option.name == 'cacertfile':
+ option = option.clone_retype(option.name, File)
+ yield option
+
def output_for_cli(self, textui, result, ldapuri, bindpw, **options):
textui.print_name(self.name)
if not result['enabled']: