Skip to content

Commit

Permalink
Merge pull request #1597 from gravitational/sasha/go1.9
Browse files Browse the repository at this point in the history
switch builder to go 1.9.2
  • Loading branch information
klizhentas authored Jan 16, 2018
2 parents e922bbc + 813ba79 commit 691a8a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.assets/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ RUN (curl -L https://github.com/coreos/etcd/releases/download/v3.0.16/etcd-v3.0.
apt-get install -y net-tools tree)

# Install Golang:
RUN mkdir -p /opt && cd /opt && curl https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gz | tar xz;\
RUN mkdir -p /opt && cd /opt && curl https://storage.googleapis.com/golang/go1.9.2.linux-amd64.tar.gz | tar xz;\
mkdir -p /gopath/src/github.com/gravitational/teleport;\
chmod a+w /gopath;\
chmod a+w /var/lib;\
Expand Down
4 changes: 2 additions & 2 deletions lib/srv/regular/sshserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func (s *Server) Close() error {

// Start starts server
func (s *Server) Start() error {
if len(s.cmdLabels) > 0 {
if len(s.getCommandLabels()) > 0 {
s.updateLabels()
}
go s.heartbeatPresence()
Expand Down Expand Up @@ -447,7 +447,7 @@ func (s *Server) heartbeatPresence() {
}

func (s *Server) updateLabels() {
for name, label := range s.cmdLabels {
for name, label := range s.getCommandLabels() {
go s.periodicUpdateLabel(name, label.Clone())
}
}
Expand Down

0 comments on commit 691a8a5

Please sign in to comment.