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
f11d6249
Commit
f11d6249
authored
Mar 07, 2018
by
Aleksey Shirokih
Browse files
Fix pull order
parent
83083275
Changes
1
Hide whitespace changes
Inline
Side-by-side
tower/api/pull.py
View file @
f11d6249
...
...
@@ -102,11 +102,9 @@ class PullAPI(API):
env
=
job
.
environment
status
=
True
log
=
[]
to_pull
=
[
(
env
.
playbook_link
,
env
.
playbook_path
)
]
self
.
pull
(
env
.
playbook_link
,
env
.
playbook_path
)
for
role
in
Role
.
select
().
where
(
Role
.
environment
==
env
,
Role
.
is_enabled
==
True
):
# noqa
to_pull
.
append
((
role
.
link
,
role
.
role_path
))
for
line
in
reversed
(
to_pull
):
self
.
pull
(
line
[
0
],
line
[
1
])
self
.
pull
(
role
.
link
,
role
.
role_path
)
with
db
.
atomic
():
job
.
complete_ts
=
datetime
.
datetime
.
now
()
...
...
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