Skip to content

Commit

Permalink
Use RFC 3339 for request to POST /cdns/dnsseckeys/generate
Browse files Browse the repository at this point in the history
  • Loading branch information
zrhoffman committed Feb 21, 2024
1 parent e96abda commit 4b25f49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infrastructure/cdn-in-a-box/traffic_ops/trafficops-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ delayfor() {
return
fi
jq_filter='.date = $date | .key = $cdn_name | .name = $domain | .ttl = 60 | .kskExpirationDays = 365 | .zskExpirationDays = 30'
generate_dnssec_body="$(jq -n --arg cdn_name "$CDN_NAME" --arg domain "$CDN_FQDN" --arg date "$(date --rfc-3339=seconds | sed 's/ /T/')" "$jq_filter")"
generate_dnssec_body="$(jq -n --arg cdn_name "$CDN_NAME" --arg domain "$CDN_FQDN" --arg date "$(date --rfc-3339=seconds)" "$jq_filter")"
until to-post "api/${TO_API_VERSION}/cdns/dnsseckeys/generate" "$generate_dnssec_body"; do
echo "Waiting for DNSSEC key generation request to succeed for ${CDN_FQDN}..."
sleep 3
Expand Down

0 comments on commit 4b25f49

Please sign in to comment.