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
6dfae8bc
Kaydet (Commit)
6dfae8bc
authored
Ara 18, 2014
tarafından
abanna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
updated parameter name to make more sense.
üst
d3cf8749
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
auth.py
docker/auth/auth.py
+4
-6
No files found.
docker/auth/auth.py
Dosyayı görüntüle @
6dfae8bc
...
...
@@ -117,18 +117,16 @@ def encode_full_header(auth):
return
encode_header
({
'configs'
:
auth
})
def
load_config
(
root
=
None
):
def
load_config
(
config_path
=
None
):
"""
Loads authentication data from a Docker configuration file in the given
root directory.
If root passed config_file is set to new path.
root directory or if config_path is passed use given path.
"""
conf
=
{}
data
=
None
config_file
=
root
or
os
.
path
.
join
(
os
.
environ
.
get
(
'HOME'
,
'.'
),
DOCKER_CONFIG_FILENAME
)
config_file
=
config_path
or
os
.
path
.
join
(
os
.
environ
.
get
(
'HOME'
,
'.'
),
DOCKER_CONFIG_FILENAME
)
# if config path doesn't exist return empty config
if
not
os
.
path
.
exists
(
config_file
):
...
...
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