From fe320c1928bd6d43dd4e70cc1cf29ef2930c2fe9 Mon Sep 17 00:00:00 2001 From: Eric Chiang Date: Fri, 14 Oct 2016 11:56:50 -0700 Subject: [PATCH] storage/sql: fix typo in keys query --- storage/sql/crud.go | 4 ++-- storage/sql/standup.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/storage/sql/crud.go b/storage/sql/crud.go index 0f8858de..1b444670 100644 --- a/storage/sql/crud.go +++ b/storage/sql/crud.go @@ -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, diff --git a/storage/sql/standup.sh b/storage/sql/standup.sh index 0b74585d..8b53d2c9 100755 --- a/storage/sql/standup.sh +++ b/storage/sql/standup.sh @@ -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 }