Merge lp:~blr/charms/precise/squid-forwardproxy/auth-params-before-acls into lp:~canonical-launchpad-branches/charms/precise/squid-forwardproxy/trunk

Proposed by Kit Randel
Status: Merged
Approved by: Kit Randel
Approved revision: 43
Merged at revision: 33
Proposed branch: lp:~blr/charms/precise/squid-forwardproxy/auth-params-before-acls
Merge into: lp:~canonical-launchpad-branches/charms/precise/squid-forwardproxy/trunk
Diff against target: 33 lines (+8/-8)
1 file modified
templates/main_config.template (+8/-8)
To merge this branch: bzr merge lp:~blr/charms/precise/squid-forwardproxy/auth-params-before-acls
Reviewer Review Type Date Requested Status
Canonical Launchpad Branches Pending
Review via email: mp+272677@code.launchpad.net

Commit message

Define auth_params before ACLs.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'templates/main_config.template'
--- templates/main_config.template 2015-08-14 00:45:46 +0000
+++ templates/main_config.template 2015-09-29 02:04:32 +0000
@@ -37,6 +37,14 @@
37{% endfor -%}37{% endfor -%}
38refresh_pattern . 30 20% 432038refresh_pattern . 30 20% 4320
3939
40{% for auth in auth_params %}
41{% for key, val in auth.iteritems() -%}
42{% if key != 'scheme' -%}
43auth_param {{ auth['scheme'] }} {{ key }} {{ val }}
44{% endif -%}
45{% endfor -%}
46{% endfor %}
47
40{% for acls, access in acls_and_access -%}48{% for acls, access in acls_and_access -%}
41{% set idx = loop.index -%}49{% set idx = loop.index -%}
42{% for acl_name, (acl_type, acl_vals) in acls.items() -%} 50{% for acl_name, (acl_type, acl_vals) in acls.items() -%}
@@ -47,14 +55,6 @@
47http_access {{ access['http_access'] }} {% for acl_spec in access['acls'] -%} {{ acl_spec }} {% endfor %}55http_access {{ access['http_access'] }} {% for acl_spec in access['acls'] -%} {{ acl_spec }} {% endfor %}
48{% endfor %}56{% endfor %}
4957
50{% for auth in auth_params %}
51{% for key, val in auth.iteritems() -%}
52{% if key != 'scheme' -%}
53auth_param {{ auth['scheme'] }} {{ key }} {{ val }}
54{% endif -%}
55{% endfor -%}
56{% endfor %}
57
58{% for relid in relations.keys() -%}58{% for relid in relations.keys() -%}
59{% if relations[relid].sitenames -%}59{% if relations[relid].sitenames -%}
60{% for sitename in relations[relid].sitenames -%}60{% for sitename in relations[relid].sitenames -%}

Subscribers

People subscribed via source and target branches

to all changes: