def watch(self): """ Update image list every so often """ while True: self.images = util.get_docker_images() sleep(120)
def __init__(self): # Make sure to pre-populate so we always have images self.images = util.get_docker_images()