Change-Id: Id9480ca97790e9732a3ab7ea53bfe3f14928c2d8
Issue-ID: OOM-2915
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
# if docker mirroring repository is set
image_name_split = image_name.split('/')
if (len(image_name_split) > 1) \
# if docker mirroring repository is set
image_name_split = image_name.split('/')
if (len(image_name_split) > 1) \
- and (image_name_split[0].find(".")) \
+ and (image_name_split[0].find(".")) >= 0 \
and not (image_name.startswith('docker.io/')) \
and (image_name_split[0] not in self._mirror_exclude):
# if image originates from private registry and its name does not start with 'docker.io'
and not (image_name.startswith('docker.io/')) \
and (image_name_split[0] not in self._mirror_exclude):
# if image originates from private registry and its name does not start with 'docker.io'