(self, product, **kwargs)
return(output)
Make the requested product
Make the requested product
Make the requested product
def make(self, product, **kwargs):
        """Make the requested product"""
        try:
            func = getattr(self, 'make_%s' % product.lower())
        except AttributeError:
            err('Factory::make: requested object does not exist: %s' % product)
            return(None)

        dbg('Factory::make: created a %s' % product)
        output = func(**kwargs)
        inject_uuid(output)
        return(output)
def make ( self , product , * * kwargs ) : try : func = getattr ( self , 'make_%s' % product . lower ( ) ) except AttributeError : err ( 'Factory::make: requested object does not exist: %s' % product ) return ( None ) dbg ( 'Factory::make: created a %s' % product ) output = func ( * * kwargs ) inject_uuid ( output ) return ( output )