Commit afa0253b by John Jarvis

jinja fixes

parent 258fdfc4
......@@ -108,8 +108,8 @@ instance_id=$(curl -s http://169.254.169.254/latest/meta-data/instance-id)
ip=$(curl -s http://169.254.169.254/latest/meta-data/local-ipv4)
s3_path="${2}/$sec_grp/"
{% for bucket in COMMON_S3_LOG_PATHS -%}
{% for item in COMMON_S3_LOG_PATHS -%}
{% for path in bucket.paths -%}
$noop $S3CMD sync {{ path }} {{ bucket }}/$sec_grp/${instance_id}-${ip}/
{% endfor %}
{% endfor %}
$noop $S3CMD sync {{ path }} {{ item['bucket'] }}/$sec_grp/${instance_id}-${ip}/
{% endfor -%}
{% endfor -%}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment