Skip to content
This repository was archived by the owner on Sep 12, 2018. It is now read-only.

Commit 018fd44

Browse files
author
Mangled Deutz
committed
Update registry core as we break drivers
Docker-DCO-1.1-Signed-off-by: Mangled Deutz <[email protected]> (github: dmp42)
1 parent e014c53 commit 018fd44

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

depends/docker-registry-core/docker_registry/core/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
__credits__ = []
4040

4141
__license__ = 'Apache 2.0'
42-
__version__ = '1.0.7'
42+
__version__ = '2.0.0'
4343
__maintainer__ = 'Docker'
4444
__email__ = '[email protected]'
4545
__status__ = 'Production'

depends/docker-registry-core/docker_registry/core/boto.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class Base(driver.Base):
129129

130130
def __init__(self, path=None, config=None):
131131
self._config = config
132-
self._root_path = config.get('storage_path', '/test')
132+
self._root_path = path or '/test'
133133
self._boto_conn = self.makeConnection()
134134
self._boto_bucket = self._boto_conn.get_bucket(
135135
self._config.boto_bucket)

depends/docker-registry-core/docker_registry/testing/utils.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ def __repr__(self):
4242
return repr(self._config)
4343

4444
def __getattr__(self, key):
45-
if key in self._config:
46-
return self._config[key]
45+
if key not in self._config:
46+
return None
47+
return self._config[key]
4748

48-
def get(self, *args, **kwargs):
49-
return self._config.get(*args, **kwargs)
49+
def __getitem__(self, key):
50+
return getattr(self, key)

0 commit comments

Comments
 (0)