def __add_jeos_image(self, image_detail):
        log = logging.getLogger('%s.%s' % (__name__, self.__class__.__name__))
        # our multi-dimensional-dict has the following keys
        # target - provider - os - version - arch - provider_image_id - user - cmd_prefix
        for i in range(8):
            try:
                image_detail[i] = image_detail[i].strip()
            except IndexError:
                image_detail.append(None)

        (target, provider, os, version, arch, provider_image_id, user, cmd_prefix) = image_detail
        if not (target in self.jeos_images):
            self.jeos_images[target] = {}
        if not (provider in self.jeos_images[target]):
            self.jeos_images[target][provider] = {}
        if not (os in self.jeos_images[target][provider]):
            self.jeos_images[target][provider][os] = {}
        if not (version in self.jeos_images[target][provider][os]):
            self.jeos_images[target][provider][os][version] = {}
        if arch in self.jeos_images[target][provider][os][version]:
            log.warning("JEOS image defined more than once for %s - %s - %s - %s - %s" % (target, provider, os, version, arch))
            log.warning("Replacing (%s) with (%s)" % (self.jeos_images[target][provider][os][version][arch], provider_image_id))

        self.jeos_images[target][provider][os][version][arch] = {'img_id':provider_image_id,
                                                                 'user':user,
                                                                 'cmd_prefix':cmd_prefix}
dataset/ETHPy150Open redhat-imaging/imagefactory/imgfac/ApplicationConfiguration.py/ApplicationConfiguration.__add_jeos_image/original