#!/usr/bin/python
from db_conn import DB_Connector


class getnode(object):

  def __init__(self,host):
    self.hst = host
    self.loc()

  def loc(self):
    dbconn=DB_Connector('192.168.42.112','invent','invent#123','inventory')
    sql="select node from ip_node where ip='% s'" % self.hst
    result=dbconn.Execute(sql)
    return result

ca4b9d8281e93607611bc86c8b80b90b16ec2e84
<mask token>

<mask token>


class getnode(object):
    <mask token>

    def loc(self):
        dbconn = DB_Connector('192.168.42.112', 'invent', 'invent#123',
            'inventory')
        sql = "select node from ip_node where ip='% s'" % self.hst
        result = dbconn.Execute(sql)
        return result

<mask token>


class getnode(object):

    def __init__(self, host):
        self.hst = host
        self.loc()

    def loc(self):
        dbconn = DB_Connector('192.168.42.112', 'invent', 'invent#123',
            'inventory')
        sql = "select node from ip_node where ip='% s'" % self.hst
        result = dbconn.Execute(sql)
        return result

from db_conn import DB_Connector


class getnode(object):

    def __init__(self, host):
        self.hst = host
        self.loc()

    def loc(self):
        dbconn = DB_Connector('192.168.42.112', 'invent', 'invent#123',
            'inventory')
        sql = "select node from ip_node where ip='% s'" % self.hst
        result = dbconn.Execute(sql)
        return result

#!/usr/bin/python
from db_conn import DB_Connector


class getnode(object):

  def __init__(self,host):
    self.hst = host
    self.loc()

  def loc(self):
    dbconn=DB_Connector('192.168.42.112','invent','invent#123','inventory')
    sql="select node from ip_node where ip='% s'" % self.hst
    result=dbconn.Execute(sql)
    return result
