Use new-style class definitions

This commit is contained in:
Joshua Boniface 2018-10-14 22:14:29 -04:00
parent a3b1445bf1
commit a5c76c5d41
3 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ import kazoo.client
import pvcd.log as log import pvcd.log as log
import pvcd.zkhandler as zkhandler import pvcd.zkhandler as zkhandler
class DomainInstance: class DomainInstance(object):
# Initialization function # Initialization function
def __init__(self, domuuid, zk_conn, config, logger, this_node): def __init__(self, domuuid, zk_conn, config, logger, this_node):
# Passed-in variables on creation # Passed-in variables on creation

View File

@ -33,7 +33,7 @@ import pvcd.log as log
import pvcd.zkhandler as zkhandler import pvcd.zkhandler as zkhandler
import pvcd.common as common import pvcd.common as common
class NodeInstance(): class NodeInstance(object):
# Initialization function # Initialization function
def __init__(self, name, this_node, zk_conn, config, logger, d_node, d_network, d_domain): def __init__(self, name, this_node, zk_conn, config, logger, d_node, d_network, d_domain):
# Passed-in variables on creation # Passed-in variables on creation

View File

@ -28,7 +28,7 @@ import pvcd.log as log
import pvcd.zkhandler as zkhandler import pvcd.zkhandler as zkhandler
import pvcd.common as common import pvcd.common as common
class VXNetworkInstance(): class VXNetworkInstance(object):
# Initialization function # Initialization function
def __init__ (self, vni, zk_conn, config, logger, this_node): def __init__ (self, vni, zk_conn, config, logger, this_node):
self.vni = vni self.vni = vni