Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
postgrest-formula
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
salt
postgrest-formula
Commits
3ba384a0
Commit
3ba384a0
authored
5 years ago
by
Jan Philipp Timme
Browse files
Options
Downloads
Patches
Plain Diff
Replace .iteritems() with items() for python3 compatibility
parent
e824f271
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
postgrest/nginx.sls
+1
-1
1 addition, 1 deletion
postgrest/nginx.sls
postgrest/postgrest.sls
+1
-1
1 addition, 1 deletion
postgrest/postgrest.sls
postgrest/tpl/postgrest.conf
+1
-1
1 addition, 1 deletion
postgrest/tpl/postgrest.conf
with
3 additions
and
3 deletions
postgrest/nginx.sls
+
1
−
1
View file @
3ba384a0
{% for instance_name, instance_conf in salt['pillar.get']("postgrest:instances").
iter
items() %}
{% for instance_name, instance_conf in salt['pillar.get']("postgrest:instances").items() %}
{% if instance_conf.nginx is defined %}
{% if instance_conf.nginx is defined %}
postgrest_{{ instance_name }}_nginx_conf:
postgrest_{{ instance_name }}_nginx_conf:
...
...
This diff is collapsed.
Click to expand it.
postgrest/postgrest.sls
+
1
−
1
View file @
3ba384a0
{% for instance_name, instance_conf in salt['pillar.get']("postgrest:instances").
iter
items() %}
{% for instance_name, instance_conf in salt['pillar.get']("postgrest:instances").items() %}
{% set tag = instance_conf.tag %}
{% set tag = instance_conf.tag %}
postgrest_{{ instance_name }}_fetch:
postgrest_{{ instance_name }}_fetch:
...
...
This diff is collapsed.
Click to expand it.
postgrest/tpl/postgrest.conf
+
1
−
1
View file @
3ba384a0
# This file is written by salt. Don't even think about it.
# This file is written by salt. Don't even think about it.
{%
for
key
,
value
in
postgrest_conf
.
iter
items
() %}{{
key
}} = {%
if
value
is
string
%}
"{{ value }}"
{%
else
%}{{
value
}}{%
endif
%}
{%
for
key
,
value
in
postgrest_conf
.
items
() %}{{
key
}} = {%
if
value
is
string
%}
"{{ value }}"
{%
else
%}{{
value
}}{%
endif
%}
{%
endfor
%}
{%
endfor
%}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment