Skip to content

Commit

Permalink
Allow Symbol in EC2 metadata inventory
Browse files Browse the repository at this point in the history
  • Loading branch information
k0kubun committed Mar 1, 2018
1 parent 2ae9d7a commit d802a75
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mrblib/specinfra/ec2_metadata.rb
Expand Up @@ -25,6 +25,9 @@ def [](key)
# end
# end

if key.is_a?(Symbol)
key = key.to_s
end
@metadata[key]
end

Expand Down

0 comments on commit d802a75

Please sign in to comment.