#NEWLINE# def _to_node( self , order ) : #NEWLINE# #INDENT# n = Node ( id = order [ 'slug' ] , name = order [ 'domain_name' ] , state = NodeState . RUNNING , public_ip = ( [ order [ 'allocated_ips' ] [ 'primary_ip' ] ] + order [ 'allocated_ips' ] [ 'secondary_ips' ] ) , private_ip = [ ] , driver = self . connection . driver , extra = { #NEWLINE# #INDENT# 'order_oid' : order [ 'order_oid' ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# return n