diff options
author | Pavel Zuna <pzuna@redhat.com> | 2010-02-17 15:46:43 +0100 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2010-02-17 10:56:06 -0500 |
commit | 03967f62e9787b27d7f91684ec76c688529ff5bd (patch) | |
tree | 3dd10871fc79233d87e4c9f2a22bd809324b2176 /ipalib/plugins/dns.py | |
parent | eab1e7cd252055eecfbc3d7a400fab027801d292 (diff) | |
download | freeipa-03967f62e9787b27d7f91684ec76c688529ff5bd.tar.gz freeipa-03967f62e9787b27d7f91684ec76c688529ff5bd.tar.xz freeipa-03967f62e9787b27d7f91684ec76c688529ff5bd.zip |
Auto-generate --all and --raw for commands, that return entries.
Diffstat (limited to 'ipalib/plugins/dns.py')
-rw-r--r-- | ipalib/plugins/dns.py | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/ipalib/plugins/dns.py b/ipalib/plugins/dns.py index 49d073e8c..397eb0b72 100644 --- a/ipalib/plugins/dns.py +++ b/ipalib/plugins/dns.py @@ -110,7 +110,6 @@ def _get_record_dn(ldap, zone, idnsname): class dns(Object): """DNS zone/SOA record object.""" - label = _('DNS') takes_params = ( @@ -176,7 +175,6 @@ class dns_add(crud.Create): """ Create new DNS zone/SOA record. """ - def execute(self, *args, **options): ldap = self.Backend.ldap2 idnsname = args[0] @@ -228,7 +226,6 @@ class dns_del(crud.Delete): """ Delete existing DNS zone/SOA record. """ - def execute(self, *args, **options): ldap = self.api.Backend.ldap2 idnsname = args[0] @@ -264,7 +261,6 @@ class dns_mod(crud.Update): """ Modify DNS zone/SOA record. """ - def execute(self, *args, **options): ldap = self.api.Backend.ldap2 idnsname = args[0] @@ -306,13 +302,6 @@ class dns_find(crud.Search): """ Search for DNS zones/SOA records. """ - - takes_options = ( - Flag('all', - doc='retrieve all attributes', - ), - ) - def execute(self, term, **options): ldap = self.api.Backend.ldap2 @@ -365,13 +354,6 @@ class dns_show(crud.Retrieve): """ Display DNS zone/SOA record. """ - - takes_options = ( - Flag('all', - doc='retrieve all attributes', - ), - ) - def execute(self, idnsname, **options): ldap = self.api.Backend.ldap2 @@ -404,7 +386,6 @@ class dns_enable(Command): """ Activate DNS zone. """ - takes_args = ( Str('zone', cli_name='zone', @@ -440,7 +421,6 @@ class dns_disable(Command): """ Deactivate DNS zone. """ - takes_args = ( Str('zone', cli_name='zone', @@ -476,7 +456,6 @@ class dns_add_rr(Command): """ Add new DNS resource record. """ - takes_args = ( Str('zone', cli_name='zone', @@ -593,7 +572,6 @@ class dns_del_rr(Command): """ Delete DNS resource record. """ - takes_args = ( Str('zone', cli_name='zone', @@ -681,7 +659,6 @@ class dns_find_rr(Command): """ Search for DNS resource records. """ - takes_args = ( Str('zone', cli_name='zone', @@ -709,9 +686,6 @@ class dns_find_rr(Command): cli_name='data', doc='type-specific data', ), - Flag('all', - doc='retrieve all attributes', - ), ) has_output = output.standard_list_of_entries @@ -811,7 +785,6 @@ class dns_show_rr(Command): """ Show existing DNS resource records. """ - takes_args = ( Str('zone', cli_name='zone', @@ -825,12 +798,6 @@ class dns_show_rr(Command): ), ) - takes_options = ( - Flag('all', - doc='retrieve all attributes', - ), - ) - has_output = output.standard_entry def execute(self, zone, idnsname, **options): |