s4:upgradehelpers.py: don't require a dns-$HOSTNAME account
authorStefan Metzmacher <metze@samba.org>
Wed, 12 Sep 2012 14:31:38 +0000 (16:31 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 12 Sep 2012 14:51:29 +0000 (16:51 +0200)
metze

source4/scripting/python/samba/upgradehelpers.py

index b0ad3d66079bfc9b69c539cd259fc4c312cd87d2..0b6c7e6663624c910f2d2d4109807a303b3cd8c1 100644 (file)
@@ -798,9 +798,6 @@ def update_dns_account_password(samdb, secrets_ldb, names):
                                                 "msDS-KeyVersionNumber")
 
         secrets_ldb.modify(msg)
-    else:
-        raise ProvisioningError("Unable to find an object"
-                                " with %s" % expression )
 
 def search_constructed_attrs_stored(samdb, rootdn, attrs):
     """Search a given sam DB for calculated attributes that are