Skip to content

Commit 588e35c

Browse files
HVSharma12spetrosi
authored andcommitted
fix: accept empty relayhost as unset
1 parent 28aaf47 commit 588e35c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/tests_previous_replaced.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,5 @@
5959
that:
6060
- __postfix_explicit_config.stdout is search(
6161
"relay_domains = Liverpool city")
62-
- __postfix_explicit_config.stdout is not search("relayhost")
62+
- (__postfix_explicit_config.stdout | regex_search('^relayhost\\s*=\\s*$', multiline=True)) or
63+
__postfix_explicit_config.stdout is not search("relayhost")

0 commit comments

Comments
 (0)