transfer.sh: use new group percent subcommand

updateservicectl removed the update-percent flag from group update to
force users to use the new api. update percents are now modified using
the group percent command.
This commit is contained in:
Stephen Demos 2018-06-19 13:45:47 -07:00
parent f89ed6f143
commit 32f3d4165b
No known key found for this signature in database
GPG Key ID: 0CD0BA970CA0F122

View File

@ -105,18 +105,17 @@ roll() {
--server="https://public.update.core-os.net" \
--user="${ROLLER_USERNAME}" \
--key="${ROLLER_API_KEY}" \
group update \
group percent \
--app-id="${APPID[${board}]}" \
--group-id="${channel}" \
--update-percent=100
else
# TODO(sdemos): update this behavior when rollout strategies land in roller
echo "Rollout set to 0%"
updateservicectl \
--server="https://public.update.core-os.net" \
--user="${ROLLER_USERNAME}" \
--key="${ROLLER_API_KEY}" \
group update \
group percent \
--app-id="${APPID[${board}]}" \
--group-id="${channel}" \
--update-percent=0