summaryrefslogtreecommitdiffstats
path: root/build/download/downloader.py
diff options
context:
space:
mode:
authorMilan Verespej <m.verespej@partner.samsung.com>2019-07-02 11:00:29 +0200
committerMilan Verespej <m.verespej@partner.samsung.com>2019-07-04 10:27:17 +0200
commit477d8ad56724de3f100dea005d7a1b4b1bd2886c (patch)
tree3311c98026a2f671ae88f25bef081575c636ec24 /build/download/downloader.py
parent651c1973691d2ab9c2fe12cf7dcdb19b5ef399cd (diff)
Add docker local registry cleaning script
Since with changing data lists there are unused images left in local registry on build server this commit adds script that handles that. Issue-ID: OOM-1952 Change-Id: Ied7a8b09aacd33ef17f0676cfab333d1df8a1a81 Signed-off-by: Milan Verespej <m.verespej@partner.samsung.com>
Diffstat (limited to 'build/download/downloader.py')
-rw-r--r--build/download/downloader.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/download/downloader.py b/build/download/downloader.py
index 64403300..7aece0cd 100644
--- a/build/download/downloader.py
+++ b/build/download/downloader.py
@@ -32,7 +32,7 @@ class AbstractDownloader(ABC):
def __init__(self, list_type, *list_args):
self._list_type = list_type
self._data_list = {item: list_arg[1] for list_arg in list_args
- for item in self._load_list(list_arg[0])}
+ for item in self.load_list(list_arg[0])}
self._missing = self.missing()
@property
@@ -43,7 +43,7 @@ class AbstractDownloader(ABC):
return self._list_type
@staticmethod
- def _load_list(path):
+ def load_list(path):
"""
Load list from file.
:param path: path to file