Skip to content

Commit

Permalink
Fix invocation of Python script to use updated arguments format.
Browse files Browse the repository at this point in the history
  • Loading branch information
Arik Kfir committed Nov 28, 2017
1 parent 242b896 commit 18bc783
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions cloudflared.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ while true; do
"name": .metadata.name,
ips: [.status.loadBalancer.ingress[].ip],
"dns": .metadata.annotations.dns|fromjson
}]' | $(dirname $0)/update_dns_records.py --domain "${DOMAIN}" \
--auth-email "${AUTH_EMAIL}" \
--auth-key "${AUTH_KEY}"
}]' | $(dirname $0)/update_dns_records.py "${DOMAIN}" "${AUTH_EMAIL}" "${AUTH_KEY}"
if [[ $? != 0 ]]; then
echo "Updating service DNS records failed!" >&2
exit 1
Expand All @@ -58,9 +56,7 @@ while true; do
"name": .metadata.name,
ips: [.status.loadBalancer.ingress[].ip],
"dns": [ .spec.rules[].host ]
}]' | $(dirname $0)/update_dns_records.py --domain "${DOMAIN}" \
--auth-email "${AUTH_EMAIL}" \
--auth-key "${AUTH_KEY}"
}]' | $(dirname $0)/update_dns_records.py "${DOMAIN}" "${AUTH_EMAIL}" "${AUTH_KEY}"
if [[ $? != 0 ]]; then
echo "Updating ingress DNS records failed!" >&2
exit 1
Expand Down

0 comments on commit 18bc783

Please sign in to comment.