Skip to content

Commit

Permalink
Fix whitespace and line-break issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlecat committed Jun 30, 2017
1 parent 3b41f22 commit a762f4c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions consul_config.py.ctmpl
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
import os

{{- define "KEY" -}}
{{ key (printf "docker-server-configs/CB/config.%s.json/%s" (env "DEPLOY_ENV") .) }}
{{- end -}}
{{- define "KEY_ARRAY" -}}
{{- range $index, $element := (key (printf "docker-server-configs/CB/config.%s.json/%s" (env "DEPLOY_ENV") .) | parseJSON) -}}
"{{.}}",
{{- end -}}
{{- end -}}
{{- end }}

import os

SECRET_KEY = '''{{template "KEY" "secret_key"}}'''

LOG_SENTRY = {
'dsn': '''{{template "KEY" "sentry/dsn_private"}}''',
'environment': '''{{template "KEY" "sentry/environment"}}''',
'release': os.getenv('GIT_SHA', None)
,
'release': os.getenv('GIT_SHA', None),
}
SENTRY_DSN_PUBLIC = '''{{template "KEY" "sentry_dsn_public"}}'''

Expand Down

0 comments on commit a762f4c

Please sign in to comment.