repo/fsrepo: add string type assert

This commit is contained in:
potsables 2019-03-10 14:13:15 -07:00 committed by Steven Allen
parent bdb9e4e21a
commit ab644a0f59

View File

@ -389,7 +389,7 @@ func (r *FSRepo) openKeystore() error {
spec = map[string]interface{}{"type": "files", "path": "keystore"}
}
ksType, ok := spec["type"]
ksType, ok := spec["type"].(string)
if !ok {
return fmt.Errorf("keystore config lacks a type")
}