Skip to content

Commit

Permalink
[change] Updated WireGaurd schema to use string type for endpoint_port
Browse files Browse the repository at this point in the history
Using integer type for endpoint_port field does not allow using variables
which is required for automatic template generation.
  • Loading branch information
pandafy committed Jun 28, 2021
1 parent 5385d72 commit 24a87f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netjsonconfig/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def evaluate_vars(data, context=None):
else:
pattern = var_pattern
if var in context:
data = re.sub(pattern, context[var], data)
data = re.sub(pattern, str(context[var]), data)
return data


Expand Down

0 comments on commit 24a87f2

Please sign in to comment.