Only call entry_from_entry() after waiting for the new entry.

This fixes an indentation problem.
This commit is contained in:
Rob Crittenden 2011-07-19 21:45:03 -04:00
parent fd148541aa
commit 7ce57e38c4

View File

@ -101,7 +101,7 @@ class hostgroup_add(LDAPCreate):
def post_callback(self, ldap, dn, entry_attrs, *keys, **options):
if self.api.env.wait_for_attr:
newentry = wait_for_value(ldap, dn, 'objectclass', 'mepOriginEntry')
entry_from_entry(entry_attrs, newentry)
entry_from_entry(entry_attrs, newentry)
return dn