Skip to content

Commit

Permalink
subnet/etcdv2: Fix panic from bad error contruction
Browse files Browse the repository at this point in the history
  • Loading branch information
tomdee committed Apr 12, 2017
1 parent 9fa0a1b commit 5d733f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subnet/etcdv2/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ func (esr *etcdSubnetRegistry) parseNetworkKey(s string) (string, bool) {
func nodeToLease(node *etcd.Node) (*Lease, error) {
sn := ParseSubnetKey(node.Key)
if sn == nil {
return nil, fmt.Errorf("failed to parse subnet key %q", *sn)
return nil, fmt.Errorf("failed to parse subnet key %s", node.Key)
}

attrs := &LeaseAttrs{}
Expand Down

0 comments on commit 5d733f0

Please sign in to comment.