From b6e4972e7f6aa08e0392a2cf441b60ab0e7d88b7 Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Wed, 9 Dec 2009 09:09:53 -0700 Subject: Take 2: Extensible return values and validation; steps toward a single output_for_cli(); enable more webUI stuff --- ipalib/plugins/service.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ipalib/plugins/service.py') diff --git a/ipalib/plugins/service.py b/ipalib/plugins/service.py index 5b0119151..f65ab3ebd 100644 --- a/ipalib/plugins/service.py +++ b/ipalib/plugins/service.py @@ -149,7 +149,7 @@ class service_add(LDAPCreate): raise errors.HostService() try: - (hostdn, hostentry) = api.Command['host_show'](hostname, **{}) + api.Command['host_show'](hostname) except errors.NotFound: raise errors.NotFound(reason="The host '%s' does not exist to add a service to." % hostname) @@ -267,4 +267,3 @@ class service_remove_host(LDAPRemoveMember): member_attributes = ['managedby'] api.register(service_remove_host) - -- cgit