def register_created(cls, key, image):
        """Register an already created image using key"""

        if key in cls._stock:
            logger.info('Warning, replacing resource ' + str(key))
        cls._stock[key] = {'type': 'created', 'image': image}
        logger.info('%s registered as %s' % ('data', key))
def register_created ( cls , key , image ) : if key in cls . _stock : logger . info ( 'Warning, replacing resource ' + str ( key ) ) cls . _stock [ key ] = { 'type' : 'created' , 'image' : image } logger . info ( '%s registered as %s' % ( 'data' , key ) )
Register an already created image using key