fixed up menu_helper so that it also uses attrs
@@ -97,10 +97,10 @@ class MenuHelper:
cmd = "docker pull " + check_image
output = check_output(shlex.split(cmd),
stderr=STDOUT)
- sha = "Digest: sha256:"
- for line in output.split('\n'):
- if line.startswith(sha):
- image_id = line.split(sha)[1][:12]
+
+ image_attrs = d_client.images.get(image_name).attrs
+ image_id = image_attrs['Id'].split(':')[1][:12]
+
if image_id:
plugin_c.set_option(section,
"built",
