Remove missing VERSION warning in dnsrecord-mod

dnsrecord-mod may call dnsrecord-delentry command when all records
are deleted. However, the version was not passwd to delentry and
it resulted in a warning.

https://fedorahosted.org/freeipa/ticket/4120
This commit is contained in:
Martin Kosek 2014-01-17 09:26:35 +01:00
parent 79fa073411
commit 894cb7b8f0

View File

@ -2636,7 +2636,7 @@ class dnsrecord_mod(LDAPUpdate):
break
if del_all:
return self.obj.methods.delentry(*keys)
return self.obj.methods.delentry(*keys, version=options['version'])
return result
def post_callback(self, ldap, dn, entry_attrs, *keys, **options):