Skip to content

Commit

Permalink
fix(migration): add boolean value support fr docker.reverse_proxy.typ…
Browse files Browse the repository at this point in the history
…e migration (#184)
  • Loading branch information
Toilal authored Jan 20, 2021
1 parent bca3311 commit 682f23f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ddb/config/migrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def __getitem__(self, item):
PropertyMigration("docker.reverse_proxy.type",
"jsonnet.docker.virtualhost.disabled", since="v1.6.0",
transformer=lambda type, config:
type == 'none',
type == 'none' or (type is not None and not type),
rollback_transformer=lambda disabled, config:
config.get('jsonnet.docker.virtualhost.type') if not disabled else 'none'),
)
Expand Down

0 comments on commit 682f23f

Please sign in to comment.