Skip to content

Commit

Permalink
lib/facter/ec2_tag_facts.rb add default data for facts
Browse files Browse the repository at this point in the history
  • Loading branch information
fb929 committed Mar 29, 2023
1 parent 061007c commit 7406f0b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/facter/ec2_tag_facts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,16 @@ def debug_msg(txt)

rescue # Ignore if awscli had any issues

Facter.add(:ec2_tags) do
setcode do
{}
end
end
Facter.add(:ec2_tag_name) do
setcode do
'unknown'
end
end
debug_msg("awscli exec failed")

end
Expand Down

0 comments on commit 7406f0b

Please sign in to comment.