From 2c4d272ef99c16f782c883578c9d6a044e5840a1 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Tue, 9 Jul 2013 07:24:14 +1000 Subject: [PATCH] encrypt: fix check for missing config Change-Id: I4433c36bc55a475cfa59953594f3a554c2d6ec2e --- pkg/blobserver/encrypt/encrypt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/blobserver/encrypt/encrypt.go b/pkg/blobserver/encrypt/encrypt.go index a534ad8a3..205cf00d3 100644 --- a/pkg/blobserver/encrypt/encrypt.go +++ b/pkg/blobserver/encrypt/encrypt.go @@ -582,7 +582,7 @@ func newFromConfig(ld blobserver.Loader, config jsonconfig.Obj) (bs blobserver.S return } - if sto.key == nil { + if keyb == nil { // TODO: add a way to prompt from stdin on start? or keychain support? return nil, errors.New("no encryption key set with 'key' or 'keyFile'") }