diff --git a/client-common/common.py b/client-common/common.py index 586e4b9a..3292bed3 100644 --- a/client-common/common.py +++ b/client-common/common.py @@ -205,7 +205,7 @@ def getPrimaryNode(zk_conn): # def getNodes(zk_conn, dom_uuid): valid_node_list = [] - full_node_list = zkhandler.list_children(zk_conn, '/nodes') + full_node_list = zkhandler.listchildren(zk_conn, '/nodes') try: current_node = zkhandler.readdata(zk_conn, '/domains/{}/node'.format(dom_uuid)) diff --git a/client-common/network.py b/client-common/network.py index 67da4ae6..b9227cba 100644 --- a/client-common/network.py +++ b/client-common/network.py @@ -194,7 +194,7 @@ def formatNetworkInformation(zk_conn, vni, long_output): for line in dhcp_reservations_string.split('\n'): ainformation.append(line) - firewall_rules = zkhandler.list_children(zk_conn, '/networks/{}/firewall_rules'.format(vni)) + firewall_rules = zkhandler.listchildren(zk_conn, '/networks/{}/firewall_rules'.format(vni)) if firewall_rules: ainformation.append('') ainformation.append('{}Network firewall rules:{}'.format(ansiprint.bold(), ansiprint.end())) @@ -743,7 +743,7 @@ def get_info(zk_conn, network, long_output): def get_list(zk_conn, limit): net_list = [] - full_net_list = zkhandler.list_children(zk_conn, '/networks') + full_net_list = zkhandler.listchildren(zk_conn, '/networks') for net in full_net_list: description = zkhandler.readdata(zk_conn, '/networks/{}'.format(net)) diff --git a/client-common/node.py b/client-common/node.py index c09b4e54..b7d31359 100644 --- a/client-common/node.py +++ b/client-common/node.py @@ -215,7 +215,7 @@ def get_info(zk_conn, node, long_output): def get_list(zk_conn, limit): # Match our limit node_list = [] - full_node_list = zkhandler.list_children(zk_conn, '/nodes') + full_node_list = zkhandler.listchildren(zk_conn, '/nodes') for node in full_node_list: if limit != None: try: