Commit fe320c19 authored by Eric Chiang's avatar Eric Chiang

storage/sql: fix typo in keys query

parent 0a3aabc8
......@@ -350,7 +350,7 @@ func (c *conn) UpdateKeys(updater func(old storage.Keys) (storage.Keys, error))
set
verification_keys = $1,
signing_key = $2,
singing_key_pub = $3,
signing_key_pub = $3,
next_rotation = $4
where id = $5;
`,
......@@ -374,7 +374,7 @@ func getKeys(q querier) (keys storage.Keys, err error) {
select
verification_keys, signing_key, signing_key_pub, next_rotation
from keys
where id=$q
where id=$1
`, keysRowID).Scan(
decoder(&keys.VerificationKeys), decoder(&keys.SigningKey),
decoder(&keys.SigningKeyPub), &keys.NextRotation,
......
......@@ -70,7 +70,7 @@ function wait_for_file {
}
function wait_for_container {
while [ -z "$( rkt list --full | grep $1 )" ]; do
while [ -z "$( rkt list --full | grep $1 | grep running )" ]; do
sleep 1
done
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment