check images and sections
@@ -484,4 +484,16 @@ def AutoInstall(**kargs):
manifest = os.path.join(path_dirs.base_dir, "plugin_manifest.cfg")
template = Template(template=manifest)
sections = template.sections()
- print sections
+ d_client = docker.from_env()
+ images = d_client.images.list(filters={'label': 'vent'})
+ for image in images:
+ print image.attrs['RepoTags'],
+ if 'vent.groups' in image.attrs['Labels']:
+ print image.attrs['Labels']['vent.groups'],
+ if 'vent.section' in image.attrs['Labels']:
+ print image.attrs['Labels']['vent.section'],
+ if image.attrs['Labels']['vent.section'] in sections:
+ print "exists",
+ else:
+ print "doesn't exist",
+ print
