Skip to content
This repository has been archived by the owner on Jul 17, 2019. It is now read-only.

Commit

Permalink
Merge pull request #21 from nferch/master
Browse files Browse the repository at this point in the history
iDRAC 8 bugfix
  • Loading branch information
nferch committed Jun 22, 2015
2 parents 154e4b7 + d461312 commit d17a1ce
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
13 changes: 13 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
ruby-moob (0.4.1) precise; urgency=low

* iDRAC 8 detect bugfix

-- Nathan Ferch <nf@spotify.com> Mon, 22 Jun 2015 16:29:59 -0400

ruby-moob (0.4.0) precise; urgency=low

* iDRAC 8 support
* Activate PEC module (PowerEdge C)

-- Nathan Ferch <nf@spotify.com> Mon, 22 Jun 2015 15:27:49 -0400

ruby-moob (0.3.16) precise; urgency=medium

* JNLP support for SuperMicro
Expand Down
8 changes: 6 additions & 2 deletions lib/moob/idrac8.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,12 @@ def decompress_response response
def detect
begin
home = @session.get 'login.html'
# patron doesn't decompress the body automatically
response = decompress_response home.body
# patron doesn't (always?) decompress the body automatically
begin
response = decompress_response home.body
rescue Zlib::GzipFile::Error
response = home.body
end
response =~ /(Integrated Dell Remote Access Controller 8)|(iDRAC8)/
rescue Exception => e
false
Expand Down
2 changes: 1 addition & 1 deletion lib/moob/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Moob
VERSION = [0,4,0]
VERSION = [0,4,1]
end

0 comments on commit d17a1ce

Please sign in to comment.