Fix children list typo
This commit is contained in:
parent
8dca8c1cd2
commit
4b924e54d9
|
@ -205,7 +205,7 @@ def getPrimaryNode(zk_conn):
|
||||||
#
|
#
|
||||||
def getNodes(zk_conn, dom_uuid):
|
def getNodes(zk_conn, dom_uuid):
|
||||||
valid_node_list = []
|
valid_node_list = []
|
||||||
full_node_list = zkhandler.list_children(zk_conn, '/nodes')
|
full_node_list = zkhandler.listchildren(zk_conn, '/nodes')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
current_node = zkhandler.readdata(zk_conn, '/domains/{}/node'.format(dom_uuid))
|
current_node = zkhandler.readdata(zk_conn, '/domains/{}/node'.format(dom_uuid))
|
||||||
|
|
|
@ -194,7 +194,7 @@ def formatNetworkInformation(zk_conn, vni, long_output):
|
||||||
for line in dhcp_reservations_string.split('\n'):
|
for line in dhcp_reservations_string.split('\n'):
|
||||||
ainformation.append(line)
|
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:
|
if firewall_rules:
|
||||||
ainformation.append('')
|
ainformation.append('')
|
||||||
ainformation.append('{}Network firewall rules:{}'.format(ansiprint.bold(), ansiprint.end()))
|
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):
|
def get_list(zk_conn, limit):
|
||||||
net_list = []
|
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:
|
for net in full_net_list:
|
||||||
description = zkhandler.readdata(zk_conn, '/networks/{}'.format(net))
|
description = zkhandler.readdata(zk_conn, '/networks/{}'.format(net))
|
||||||
|
|
|
@ -215,7 +215,7 @@ def get_info(zk_conn, node, long_output):
|
||||||
def get_list(zk_conn, limit):
|
def get_list(zk_conn, limit):
|
||||||
# Match our limit
|
# Match our limit
|
||||||
node_list = []
|
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:
|
for node in full_node_list:
|
||||||
if limit != None:
|
if limit != None:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue