blob: 6d6982ed6e9443ab5242ef4ed5ba1bbcc4494804 [file] [log] [blame]
from synchronizers.new_base.modelaccessor import *
def handle(image):
if (image.kind == "container"):
# container images do not get instantiated
return
controller_images = ControllerImages.objects.filter(image=image)
existing_controllers = [cs.controller for cs in controller_images]
all_controllers = Controller.objects.all()
for controller in all_controllers:
if controller not in existing_controllers:
sd = ControllerImages(image=image, controller=controller)
sd.save()