From ff8505a7d1116fe2158bebdc5b51ff575a19fd6a Mon Sep 17 00:00:00 2001 From: Akashdeep Dhar Date: Feb 01 2021 16:25:50 +0000 Subject: Fixed issue when an invalid parameter "name" was chosen for images Signed-off-by: Akashdeep Dhar --- diff --git a/dish/back.py b/dish/back.py index 8afa11b..fe48df1 100644 --- a/dish/back.py +++ b/dish/back.py @@ -126,7 +126,7 @@ class DockerImageInformation: dispdict = { "short_id": imejobjc.short_id, "id": imejobjc.id, - "name": imejobjc.name, + "name": imejobjc.tags[0], "attrs": imejobjc.attrs, "labels": imejobjc.labels, "tags": imejobjc.tags @@ -141,7 +141,7 @@ class DockerImageInformation: try: imejobjc = self.clinobjc.images.get(imejiden) dispdict = { - "history": imejobjc.history + "history": imejobjc.history() } except: dispdict = {