def get_data_member(parent, path):
 if (parent.meta.data is None):
  if hasattr(parent, 'load'):
   parent.load()
  else:
   raise ResourceLoadException('{0} has no load method!'.format(parent.__class__.__name__))
 return jmespath.search(path, parent.meta.data)

def get_data_member ( parent , path ) : if ( parent . meta . data is None ) : if hasattr ( parent , 'load' ) : parent . load ( ) else : raise ResourceLoadException ( '{0} has no load method!' . format ( parent . __class__ . __name__ ) ) return jmespath . search ( path , parent . meta . data )
get a data member from a parent using a jmespath search query .