Skip to content

Commit

Permalink
Fix no hostname Lambda error.
Browse files Browse the repository at this point in the history
  • Loading branch information
metaskills committed Feb 2, 2020
1 parent b3b8808 commit f97437c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.2.1] - 2020-02-01

### Fixed

- There is no `hostname` on Lambda.


## [1.2.0] - 2019-11-15

### Added
Expand Down
2 changes: 1 addition & 1 deletion lib/is_it_working/handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Handler
def initialize(app=nil, route_path="/is_it_working", &block)
@app = app
@route_path = route_path
@hostname = `hostname`.chomp
@hostname = `hostname`.to_s.chomp
@timers = []
@filters = []
@mutex = Mutex.new
Expand Down
2 changes: 1 addition & 1 deletion lib/is_it_working/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module IsItWorking
VERSION = '1.2.0'.freeze
VERSION = '1.2.1'.freeze
end

0 comments on commit f97437c

Please sign in to comment.