lib/aws-partitions/region.rb in aws-partitions-1.26.0 vs lib/aws-partitions/region.rb in aws-partitions-1.27.0
- old
+ new
@@ -55,10 +55,10 @@
services
end
end
def service_in_region?(svc, region_name)
- svc['endpoints'].key?(region_name)
+ svc.key?('endpoints') && svc['endpoints'].key?(region_name)
end
end
end
end