Skip to content

Commit 12da7bb

Browse files
🚑 Hotfix for broken $DEFAULT
1 parent 3db9fb0 commit 12da7bb

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](https://semver.org/).
66

77

8+
# 0.3.1 - 2021-01-30
9+
## Added
10+
11+
## Fixed
12+
- `$DEFAULT` wrongly overwrote variables
13+
14+
## Changed
15+
16+
817
# 0.3.0 - 2021-01-22
918
## Added
1019
- Automatically maintain a catalog file

dnstemple/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def expand_variables(filename, line, config):
9090

9191
def expand_default(filename, line, config):
9292
(token, var, default) = line.split(maxsplit=2)
93-
if var not in config['variables'] or config['variables'][var] != '':
93+
if var not in config['variables'] or config['variables'][var] == '':
9494
config['variables'][var] = default
9595
return ''
9696

dnstemple/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = '0.3.0'
1+
VERSION = '0.3.1'

0 commit comments

Comments
 (0)