def resetProvisioning(cls, type): if type == "local": LC.reload() else: try: cls.P.flushCache(Provisioning.CacheEntryType.fromString(type), None) except: pass # mailboxd is down, or not running here, either way we don't care.