1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[aws|cdn] splat expand paths for post_invalidation

This commit is contained in:
geemus 2010-11-01 15:05:02 -07:00
parent 2a77066d4d
commit 3d6104e383

View file

@ -29,7 +29,7 @@ module Fog
def post_invalidation(distribution_id, paths, caller_reference = Time.now.to_i.to_s)
body = '<?xml version="1.0" encoding="UTF-8"?>'
body << "<InvalidationBatch>"
for path in paths
for path in [*paths]
body << "<Path>" << path << "</Path>"
end
body << "<CallerReference>" << caller_reference << "</CallerReference>"