Skip to content

Commit

Permalink
Merge pull request #2639 from oasislabs/ptrus/fix/registry-cmd
Browse files Browse the repository at this point in the history
go/cmd/registry/runtime: fix provisioning a runtime without keymanager
  • Loading branch information
ptrus authored Feb 4, 2020
2 parents e47c2ff + d3e85a2 commit 6a09d57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .changelog/2639.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
go/cmd/registry/runtime: fix provisioning a runtime without keymanager
2 changes: 1 addition & 1 deletion go/oasis-node/cmd/registry/runtime/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ func runtimeFromFlags() (*registry.Runtime, signature.Signer, error) {
}
switch kind {
case registry.KindCompute:
if viper.IsSet(CfgKeyManager) {
if viper.GetString(CfgKeyManager) != "" {
var tmpKmID common.Namespace
if err = tmpKmID.UnmarshalHex(viper.GetString(CfgKeyManager)); err != nil {
logger.Error("failed to parse key manager ID",
Expand Down

0 comments on commit 6a09d57

Please sign in to comment.