Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Konstantin A
tower
Commits
180515f0
Commit
180515f0
authored
Mar 10, 2018
by
Aleksey Shirokih
Browse files
Fix services with - in name. replace it with _
parent
fd9d8aad
Changes
1
Hide whitespace changes
Inline
Side-by-side
tower/models/environment.py
View file @
180515f0
...
...
@@ -294,8 +294,9 @@ class Environment(Model):
@
staticmethod
def
name_config
(
config
,
service
):
cfg
=
copy
.
deepcopy
(
config
)
sv
=
service
.
replace
(
"-"
,
"_"
)
for
k
in
cfg
.
keys
():
cfg
[
"_"
.
join
([
s
ervice
,
k
])]
=
cfg
.
pop
(
k
)
cfg
[
"_"
.
join
([
s
v
,
k
])]
=
cfg
.
pop
(
k
)
return
cfg
def
get_service_config
(
self
):
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment