pgreco / rpms / ipa

Forked from forks/areguera/rpms/ipa 4 years ago
Clone
Blob Blame History Raw
From a7c1e25d3d1c065d0a56e63741c8e5b05ee880a6 Mon Sep 17 00:00:00 2001
From: David Kupka <dkupka@redhat.com>
Date: Fri, 15 Jul 2016 11:55:19 +0200
Subject: [PATCH] help: Add dnsserver commands to help topic 'dns'

https://fedorahosted.org/freeipa/ticket/6069

Reviewed-By: Petr Spacek <pspacek@redhat.com>
---
 ipaserver/plugins/dnsserver.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/ipaserver/plugins/dnsserver.py b/ipaserver/plugins/dnsserver.py
index beddec04230d810479fff9612721cf12260bbb3a..d635722a6b6aaea942d49456a04f5d0480d344c9 100644
--- a/ipaserver/plugins/dnsserver.py
+++ b/ipaserver/plugins/dnsserver.py
@@ -48,6 +48,8 @@ EXAMPLES:
 
 register = Registry()
 
+topic = None
+
 dnsserver_object_class = ['top', 'idnsServerConfigObject']
 
 @register()
@@ -149,6 +151,7 @@ class dnsserver(LDAPObject):
 @register()
 class dnsserver_mod(LDAPUpdate):
     __doc__ = _('Modify DNS server configuration')
+    topic = 'dns'
 
     msg_summary = _('Modified DNS server "%(value)s"')
 
@@ -156,6 +159,7 @@ class dnsserver_mod(LDAPUpdate):
 @register()
 class dnsserver_find(LDAPSearch):
     __doc__ = _('Search for DNS servers.')
+    topic = 'dns'
 
     msg_summary = ngettext(
         '%(count)d DNS server matched',
@@ -166,6 +170,7 @@ class dnsserver_find(LDAPSearch):
 @register()
 class dnsserver_show(LDAPRetrieve):
     __doc__=_('Display configuration of a DNS server.')
+    topic = 'dns'
 
 
 @register()
@@ -175,6 +180,7 @@ class dnsserver_add(LDAPCreate, Local):
     Be careful in future this will be transformed to public API call
     """
     __doc__ = _('Add a new DNS server.')
+    topic = 'dns'
 
     msg_summary = _('Added new DNS server "%(value)s"')
 
@@ -186,5 +192,6 @@ class dnsserver_del(LDAPDelete, Local):
     Be careful in future this will be transformed to public API call
     """
     __doc__ = _('Delete a DNS server')
+    topic = 'dns'
 
     msg_summary = _('Deleted DNS server "%(value)s"')
-- 
2.7.4