summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/host.py
diff options
context:
space:
mode:
authorPavel Zuna <pzuna@redhat.com>2009-06-16 14:38:27 +0200
committerRob Crittenden <rcritten@redhat.com>2009-07-02 13:33:02 -0400
commitb6cfae46e4625cc27544f58de7d0f13b8700f143 (patch)
tree8d1cd142044f477c765ec95d5dd229092e312bc7 /ipalib/plugins/host.py
parente1e1db9c9fc71c88e847aba8a9a02bc383317c18 (diff)
downloadfreeipa.git-b6cfae46e4625cc27544f58de7d0f13b8700f143.tar.gz
freeipa.git-b6cfae46e4625cc27544f58de7d0f13b8700f143.tar.xz
freeipa.git-b6cfae46e4625cc27544f58de7d0f13b8700f143.zip
Rename plugins2 to plugins.
Diffstat (limited to 'ipalib/plugins/host.py')
-rw-r--r--ipalib/plugins/host.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/ipalib/plugins/host.py b/ipalib/plugins/host.py
index 1b2b7490..3fb211be 100644
--- a/ipalib/plugins/host.py
+++ b/ipalib/plugins/host.py
@@ -77,7 +77,7 @@ def determine_platform():
return unicode(machine)
-class host2(Object):
+class host(Object):
"""
Host object.
"""
@@ -119,10 +119,10 @@ class host2(Object):
),
)
-api.register(host2)
+api.register(host)
-class host2_create(crud.Create):
+class host_create(crud.Create):
"""
Create new host.
"""
@@ -192,10 +192,10 @@ class host2_create(crud.Create):
textui.print_entry(entry_attrs)
textui.print_dashed('Created host "%s".' % hostname)
-api.register(host2_create)
+api.register(host_create)
-class host2_delete(crud.Delete):
+class host_delete(crud.Delete):
"""
Delete host.
"""
@@ -228,10 +228,10 @@ class host2_delete(crud.Delete):
textui.print_name(self.name)
textui.print_dashed('Deleted host "%s".' % hostname)
-api.register(host2_delete)
+api.register(host_delete)
-class host2_mod(crud.Update):
+class host_mod(crud.Update):
"""
Modify host.
"""
@@ -272,10 +272,10 @@ class host2_mod(crud.Update):
textui.print_entry(entry_attrs)
textui.print_dashed('Modified host "%s".' % hostname)
-api.register(host2_mod)
+api.register(host_mod)
-class host2_find(crud.Search):
+class host_find(crud.Search):
"""
Search for hosts.
"""
@@ -329,10 +329,10 @@ class host2_find(crud.Search):
'Please refine your search and try again.', above=False
)
-api.register(host2_find)
+api.register(host_find)
-class host2_show(crud.Retrieve):
+class host_show(crud.Retrieve):
"""
Display host.
"""
@@ -371,5 +371,5 @@ class host2_show(crud.Retrieve):
textui.print_attribute('dn', dn)
textui.print_entry(entry_attrs)
-api.register(host2_show)
+api.register(host_show)