Commit cd289c5
authored
Fix credential existence check for rgw usage exporter
credential_check.stdout is a string representation of a list, and as such will never return true when compared to an empty Python list.
Passing credential_check.stdout through the from_json filter casts the string to a list, and the equality can be properly evaluated.1 parent 08d0735 commit cd289c5
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
0 commit comments