From: Julien Cristau Date: Sun, 6 Aug 2017 22:51:09 +0000 (-0400) Subject: Fix getfastlyranges harder X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=9f8a8f75b93cfb93effc539ae6d5a424d85e33fc;p=mirror%2Fdsa-puppet.git Fix getfastlyranges harder --- diff --git a/modules/ferm/templates/defs.conf.erb b/modules/ferm/templates/defs.conf.erb index 84f726a34..6e6b0a4ca 100644 --- a/modules/ferm/templates/defs.conf.erb +++ b/modules/ferm/templates/defs.conf.erb @@ -77,7 +77,7 @@ def getfastlyranges() begin data = YAML.safe_load(File.open("/srv/puppet.debian.org/puppet-facts/fastly_ranges.yaml").read) - return data.addresses + return data['addresses'] rescue return [] end