fix(cloudflared): quote the mint POST status assertion in verify.yml
The plain scalar `cloudflared_test_posts[0] is search('"status": 200')`
holds ': ', so YAML parsed it as a one-key mapping and ansible-core
refused it ("Conditional expressions must be strings"). A folded block
scalar keeps it a string.
Assisted-by: Claude Code:claude-opus-5-5
This commit is contained in:
1 parent
701226f499
commit
42c391ccbe
1 file changed
+3
-1
@@ -342,7 +342,9 @@
|
||||
- "'nothing to mint' not in cloudflared_test_out[2]"
|
||||
- cloudflared_test_rc[3] == 0
|
||||
- cloudflared_test_posts | length == 1
|
||||
- cloudflared_test_posts[0] is search('"status": 200')
|
||||
# Block scalar: the ': ' in the pattern would make a plain scalar a YAML mapping.
|
||||
- >-
|
||||
cloudflared_test_posts[0] is search('"status": 200')
|
||||
fail_msg: "Return codes {{ cloudflared_test_rc }}, outputs: {{ cloudflared_test_out }}"
|
||||
quiet: true
|
||||
|
||||
|
||||
Reference in new issue
Block a user