Commit 656d712
committed
devconfig: fix Ansible boolean conditional check for custom repos/packages
Newer Ansible versions reject string variables used directly in conditionals,
requiring explicit boolean expressions. The error "Conditional result (False)
was derived from value of type 'str'" occurs when checking empty string
variables even though they're defined.
Remove the redundant first condition that directly checks the string variable.
The length check already handles empty strings properly by evaluating to a
boolean result (length > 1), making the task skip when the variable is empty
or whitespace-only.
Generated-by: Claude AI
Signed-off-by: Daniel Gomez <[email protected]>1 parent 66520ae commit 656d712
File tree
1 file changed
+0
-2
lines changed- playbooks/roles/devconfig/tasks/config-custom-repos-and-packages/redhat
1 file changed
+0
-2
lines changedLines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
27 | | - | |
28 | 26 | | |
0 commit comments