Skip to content

Commit

Permalink
fix megaraid_virtual_drives fact return value
Browse files Browse the repository at this point in the history
Resolves this test failure:
  1) megaraid_virtual_drives on linux no adapters should be nil
     Failure/Error: Facter.fact(:megaraid_virtual_drives).value.should be_nil
       expected: nil
            got: ""
  • Loading branch information
jhoblitt committed Nov 18, 2014
1 parent adddbf5 commit 5c219ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/facter/megaraid_virtual_drives.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
end
end

next nil if vds.empty?
vds.sort.join(',')
end
end

0 comments on commit 5c219ce

Please sign in to comment.