Skip to content

Commit

Permalink
go/oasis-net-runner: Fix keymanager use determination
Browse files Browse the repository at this point in the history
  • Loading branch information
kostko authored and ptrus committed Jun 17, 2021
1 parent 148fcd6 commit 4d99acb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .changelog/4042.trivial.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
go/oasis-net-runner: Fix keymanager use determination
4 changes: 2 additions & 2 deletions go/oasis-net-runner/fixtures/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func newDefaultFixture() (*oasis.NetworkFixture, error) {
RuntimeProvisioner: runtimeProvisioner,
}}

usingKeymanager := viper.IsSet(cfgKeymanagerBinary)
usingKeymanager := len(viper.GetString(cfgKeymanagerBinary)) > 0

if viper.GetBool(cfgSetupRuntimes) {
fixture.Runtimes = []oasis.RuntimeFixture{
Expand All @@ -124,7 +124,7 @@ func newDefaultFixture() (*oasis.NetworkFixture, error) {
Entity: 0,
Keymanager: -1,
Binaries: map[node.TEEHardware][]string{
tee: viper.GetStringSlice(cfgKeymanagerBinary),
tee: {viper.GetString(cfgKeymanagerBinary)},
},
AdmissionPolicy: registry.RuntimeAdmissionPolicy{
AnyNode: &registry.AnyNodeRuntimeAdmissionPolicy{},
Expand Down

0 comments on commit 4d99acb

Please sign in to comment.