Skip to content

Commit

Permalink
remove hardcoded
Browse files Browse the repository at this point in the history
Signed-off-by: Marcos Yacob <[email protected]>
  • Loading branch information
MarcosDY committed Sep 24, 2024
1 parent cb1789e commit a080513
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ for agent in "${agents[@]}"; do
-socketPath /opt/spire/sockets/workload_api.sock \
-write /tmp; then

bundleCount=$(docker compose exec -T leafA-agent \
bundleCount=$(docker compose exec -T $agent \
openssl storeutl -noout -text -certs /tmp/bundle.0.pem | grep -c "Certificate:")
if [ $bundleCount -eq 1 ]; then
log-debug "Validation successful for $agent: There is exactly one certificate in the chain."
Expand Down

0 comments on commit a080513

Please sign in to comment.