Skip to content

Commit

Permalink
Leave host endpoint reporting as it was, without region field
Browse files Browse the repository at this point in the history
  • Loading branch information
Neil Jerram committed Jan 17, 2019
1 parent 410cf2c commit 0e67214
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions statusrep/status_reporter.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2016-2018 Tigera, Inc. All rights reserved.
// Copyright (c) 2016-2019 Tigera, Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -175,14 +175,12 @@ loop:
statID = model.HostEndpointStatusKey{
Hostname: esr.hostname,
EndpointID: msg.Id.EndpointId,
Region: esr.region,
}
status = msg.Status.Status
case *proto.HostEndpointStatusRemove:
statID = model.HostEndpointStatusKey{
Hostname: esr.hostname,
EndpointID: msg.Id.EndpointId,
Region: esr.region,
}
default:
log.Panicf("Unexpected message: %#v", msg)
Expand Down Expand Up @@ -289,7 +287,6 @@ func (esr *EndpointStatusReporter) attemptResync(ctx context.Context) {

hostListOpts := model.HostEndpointStatusListOptions{
Hostname: esr.hostname,
Region: esr.region,
}
kvl, err = esr.datastore.List(ctx, hostListOpts, "")
if err == nil {
Expand Down

0 comments on commit 0e67214

Please sign in to comment.