mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-01-15 03:40:45 -03:30
Fix a bug in nodes_to_inv.py
This commit is contained in:
parent
8d3abdb489
commit
c4e3266031
@ -29,6 +29,7 @@ def nodes_to_hash(nodes_list, masters):
|
||||
'children': ['kube-node', 'kube-master']
|
||||
}
|
||||
}
|
||||
i = 1
|
||||
|
||||
for node_ip in nodes_list:
|
||||
nodes['all']['hosts'].append("%s" % node_ip)
|
||||
@ -37,6 +38,7 @@ def nodes_to_hash(nodes_list, masters):
|
||||
nodes['kube-master']['hosts'].append("%s" % node_ip)
|
||||
if i <= 3:
|
||||
nodes['etcd']['hosts'].append("%s" % node_ip)
|
||||
i += 1
|
||||
|
||||
return nodes
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user