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
07455a6a
Kaydet (Commit)
07455a6a
authored
Mar 16, 2016
tarafından
Aanand Prasad
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Clarify error messages when bad values are passed in for tmpfs
Signed-off-by:
Aanand Prasad
<
aanand.prasad@gmail.com
>
üst
88ef5f36
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
utils.py
docker/utils/utils.py
+4
-2
No files found.
docker/utils/utils.py
Dosyayı görüntüle @
07455a6a
...
@@ -343,7 +343,8 @@ def convert_tmpfs_mounts(tmpfs):
...
@@ -343,7 +343,8 @@ def convert_tmpfs_mounts(tmpfs):
if
not
isinstance
(
tmpfs
,
list
):
if
not
isinstance
(
tmpfs
,
list
):
raise
ValueError
(
raise
ValueError
(
'Tmpfs spec must be a list'
'Expected tmpfs value to be either a list or a dict, found: {}'
.
format
(
type
(
tmpfs
)
.
__name__
)
)
)
result
=
{}
result
=
{}
...
@@ -357,7 +358,8 @@ def convert_tmpfs_mounts(tmpfs):
...
@@ -357,7 +358,8 @@ def convert_tmpfs_mounts(tmpfs):
else
:
else
:
raise
ValueError
(
raise
ValueError
(
"Tmpfs spec have to be str, unicode or tuple"
"Expected item in tmpfs list to be a string, found: {}"
.
format
(
type
(
mount
)
.
__name__
)
)
)
result
[
name
]
=
options
result
[
name
]
=
options
...
...
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