def generate_minion_id():
 return (_generate_minion_id().first() or 'localhost')

def generate_minion_id ( ) : return ( _generate_minion_id ( ) . first ( ) or 'localhost' )
return only first element of the hostname from all possible list .