fix(mcp): renewer logs a single TTL value
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d51bad2277
commit
417cd3165f
1 file changed
+1
-1
@@ -73,7 +73,7 @@ services:
|
|||||||
- |
|
- |
|
||||||
while :; do
|
while :; do
|
||||||
if out=$$(vault token renew -format=json 2>&1); then
|
if out=$$(vault token renew -format=json 2>&1); then
|
||||||
echo "$$(date -u +%FT%TZ) renewed (ttl $$(echo "$$out" | grep -o '"lease_duration": [0-9]*' | grep -o '[0-9]*')s)"
|
echo "$$(date -u +%FT%TZ) renewed (ttl $$(echo "$$out" | grep -o '"lease_duration": [0-9]*' | grep -o '[0-9]*' | tail -1)s)"
|
||||||
sleep 86400
|
sleep 86400
|
||||||
else
|
else
|
||||||
echo "$$(date -u +%FT%TZ) RENEW FAILED: $$out"
|
echo "$$(date -u +%FT%TZ) RENEW FAILED: $$out"
|
||||||
|
|||||||
Reference in new issue
Block a user