(self)
return self._description
Property that returns the template description.
Property that returns the template description.
Property that returns the template description .
def description(self):
        """Property that returns the template description."""
        if self._description:
            return self._description

        if not self._resource_id:
            logger.error('No resource ID, have you loaded the template yet?')
            raise ValueError('Unable to get a name, not loaded yet.')

        data = self.lazyload_data()
        objects = data.get('objects')
        if not objects:
            return 'No description'

        self._description = objects[0].get('description', 'N/A')
        return self._description
def description ( self ) : if self . _description : return self . _description if not self . _resource_id : logger . error ( 'No resource ID, have you loaded the template yet?' ) raise ValueError ( 'Unable to get a name, not loaded yet.' ) data = self . lazyload_data ( ) objects = data . get ( 'objects' ) if not objects : return 'No description' self . _description = objects [ 0 ] . get ( 'description' , 'N/A' ) return self . _description