[Freeipa-devel] [PATCH] 0024..0025 Add missing certprofile features

Jan Cholasta jcholast at redhat.com
Thu Jul 2 09:23:49 UTC 2015


Hi,

Dne 2.7.2015 v 11:15 Fraser Tweedale napsal(a):
> Attached patches fix a couple of important gaps in certprofile
> plugin:
>
> - Add --out option to export Dogtag profile data to file
>    https://fedorahosted.org/freeipa/ticket/5091
>
> - Add --file option to update existing profile in Dogtag
>    https://fedorahosted.org/freeipa/ticket/5093
>

Just a couple nitpicks:

+    takes_options = LDAPUpdate.takes_options + (
+        File('file?',
+            label=_('File containing profile configuration'),
+            cli_name='file',
+            flags=('virtual_attribute',),
+        ),
+    )

1) Don't set cli_name if it's the same as name.

2) The virtual_attribute flag is meaningless in Commands.

3) Add "include='cli'" to denote that the option is specific to CLI 
(applies to --out as well).

Honza

-- 
Jan Cholasta




More information about the Freeipa-devel mailing list