#NEWLINE# @ classmethod #NEWLINE# def from_config_dict( cls , name , obj ) : #NEWLINE# #INDENT# 'Build a GlobalName object from a config dict.\n\n        args:\n            name: str, name of the globalname\n            obj: dict, config dict\n\n        ' #NEWLINE# if ( 'pool' not in obj ) : #NEWLINE# #INDENT# log_msg = '"{}" is missing a mandatory parameter "pool"' . format ( name ) #NEWLINE# LOG . error ( log_msg ) #NEWLINE# raise Error ( log_msg ) #NEWLINE# #UNINDENT# if ( 'ttl' not in obj ) : #NEWLINE# #INDENT# log_msg = '"{}" is missing a mandatory parameter "ttl"' . format ( name ) #NEWLINE# LOG . error ( log_msg ) #NEWLINE# raise Error ( log_msg ) #NEWLINE# #UNINDENT# return cls ( name = name , pool_name = obj [ 'pool' ] , ttl = obj [ 'ttl' ] )