Skip to content

Commit

Permalink
Fixed bad condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrien Delle Cave committed Oct 10, 2022
1 parent c64d251 commit 97e0213
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
nsaproxy (0.1.57) unstable; urgency=medium

* Fixed bad condition.

-- Adrien DELLE CAVE (Decryptus) <adrien.delle.cave@commandersact.com> Mon, 10 Oct 2022 23:10:33 +0200

nsaproxy (0.1.56) unstable; urgency=medium

* Release version: 0.1.56.
Expand Down
2 changes: 1 addition & 1 deletion RELEASE
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.56
0.1.57
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.56
0.1.57
2 changes: 1 addition & 1 deletion bin/nsaproxy
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
"""nsaproxy"""

__version__ = '0.1.56'
__version__ = '0.1.57'

# TODO: load Python logging configuration (using standard logging.config)

Expand Down
2 changes: 1 addition & 1 deletion nsaproxy/modules/pdns.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def _lock(self, endpoint, zone_id, lock_func = None):

if endpoint == 'zones' and zone_id:
zone_id = zone_id.rstrip('.')
if self.ZONELOCK.try_acquire(zone_id):
if not self.ZONELOCK.try_acquire(zone_id):
raise HttpReqErrJson(503, "unable to take ZONELOCK(%r)" % zone_id)

return (self.ZONELOCK.release, [zone_id])
Expand Down
4 changes: 2 additions & 2 deletions setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ description: nsaproxy
author: Adrien Delle Cave
author_email: pypi@doowan.net
copyright: '2022 fjord-technologies'
release: '0.1.56'
version: '0.1.56'
release: '0.1.57'
version: '0.1.57'
license: License GPL-3
url: https://github.com/decryptus/nsaproxy
python_requires:
Expand Down

0 comments on commit 97e0213

Please sign in to comment.