summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/host.py
diff options
context:
space:
mode:
authorPavel Zuna <pzuna@redhat.com>2009-06-16 16:51:44 +0200
committerRob Crittenden <rcritten@redhat.com>2009-07-02 13:33:02 -0400
commit4b6a6c405cb66b38e1fd0961eaaca406f061fa60 (patch)
tree275432c9087b9d6225271dbe4821c6f728ba1f05 /ipalib/plugins/host.py
parent89993d9939e938d7e3305da59c3b61aa84792593 (diff)
downloadfreeipa.git-4b6a6c405cb66b38e1fd0961eaaca406f061fa60.tar.gz
freeipa.git-4b6a6c405cb66b38e1fd0961eaaca406f061fa60.tar.xz
freeipa.git-4b6a6c405cb66b38e1fd0961eaaca406f061fa60.zip
Rename *-create/*-delete commands to *-add/*-del respectively.
Diffstat (limited to 'ipalib/plugins/host.py')
-rw-r--r--ipalib/plugins/host.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/ipalib/plugins/host.py b/ipalib/plugins/host.py
index 3fb211be..9d8df1db 100644
--- a/ipalib/plugins/host.py
+++ b/ipalib/plugins/host.py
@@ -122,7 +122,7 @@ class host(Object):
api.register(host)
-class host_create(crud.Create):
+class host_add(crud.Create):
"""
Create new host.
"""
@@ -192,10 +192,10 @@ class host_create(crud.Create):
textui.print_entry(entry_attrs)
textui.print_dashed('Created host "%s".' % hostname)
-api.register(host_create)
+api.register(host_add)
-class host_delete(crud.Delete):
+class host_del(crud.Delete):
"""
Delete host.
"""
@@ -215,7 +215,7 @@ class host_delete(crud.Delete):
services = api.Command['service2_find'](hostname)
for (dn, entry_attrs) in services:
principal = entry_attrs['krbprincipalname']
- api.Command['service2_delete'](principal)
+ api.Command['service2_del'](principal)
ldap.delete_entry(dn)
@@ -228,7 +228,7 @@ class host_delete(crud.Delete):
textui.print_name(self.name)
textui.print_dashed('Deleted host "%s".' % hostname)
-api.register(host_delete)
+api.register(host_del)
class host_mod(crud.Update):