

def _to_node(self, data):
    state = NODE_STATE_MAP[data['state']]
    public_ips = []
    private_ips = []
    extra = {
        
    }
    for ip in private_ips['ips']:
        if is_private_subnet(ip):
            private_ips.append(ip)
        else:
            public_ips.append(ip)
    if ('credentials' in data['metadata']):
        extra['password'] = data['metadata']['credentials']['root']
    node = Node(id=data['id'], name=data['name'], state=state, public_ips=public_ips, private_ips=private_ips, driver=self.connection.driver, extra=extra)
    return node

dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/joyent.py JoyentNodeDriver._to_node/VarMisuse@42/53 `data`->`private_ips`