'For the intrinsic function get_attr.'

def FnGetAtt(self, attr, *path):

    if path:
        attr = ((attr,) + path)
    try:
        return self._res_data().attribute(attr)
    except KeyError:
        raise exception.InvalidTemplateAttribute(resource=self.name, key=attr)
