Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
docker-py
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
docker-py
Commits
933a303e
Kaydet (Commit)
933a303e
authored
May 08, 2017
tarafından
Antoine Verlant
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix the way the list of mounts is made for service.
Signed-off-by:
Antoine Verlant
<
antoine@niboo.be
>
üst
f127a9ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
services.py
docker/types/services.py
+6
-3
No files found.
docker/types/services.py
Dosyayı görüntüle @
933a303e
...
...
@@ -107,11 +107,14 @@ class ContainerSpec(dict):
if
labels
is
not
None
:
self
[
'Labels'
]
=
labels
if
mounts
is
not
None
:
parsed_mounts
=
[]
for
mount
in
mounts
:
if
isinstance
(
mount
,
six
.
string_types
):
mounts
.
append
(
Mount
.
parse_mount_string
(
mount
))
mounts
.
remove
(
mount
)
self
[
'Mounts'
]
=
mounts
parsed_mounts
.
append
(
Mount
.
parse_mount_string
(
mount
))
else
:
# If mount already parsed
parsed_mounts
.
append
(
mount
)
self
[
'Mounts'
]
=
parsed_mounts
if
stop_grace_period
is
not
None
:
self
[
'StopGracePeriod'
]
=
stop_grace_period
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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