Skip to content

Commit

Permalink
Update ec2.rb
Browse files Browse the repository at this point in the history
Attempt #2 to fix linters

Signed-off-by: Greg Batye <[email protected]>
  • Loading branch information
gbatye committed Oct 10, 2022
1 parent 7846323 commit dd35565
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/ohai/plugins/ec2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ def file_val_if_exists(path)
# @return [Boolean] Does the system appear to be on EC2
def looks_like_ec2?
return true if hint?("ec2")

return true if has_ec2_xen_uuid? || has_ec2_amazon_dmi? || has_ec2_xen_dmi? || has_ec2_identifying_number?
end

Expand Down

0 comments on commit dd35565

Please sign in to comment.