Skip to content

Commit

Permalink
Initialized export_node_ip_map (#510)
Browse files Browse the repository at this point in the history
Signed-off-by: Jayesh-Kumar3 <Jayesh.Kumar3@ibm.com>
Co-authored-by: Jayesh-Kumar3 <Jayesh.Kumar3@ibm.com>
  • Loading branch information
jayeshh123 and Jayesh-Kumar3 authored Apr 25, 2024
1 parent 0703ffe commit 831a06c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/common/scripts/prepare_scale_inv_ini.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,14 +632,14 @@ def initialize_scale_ces_details(smb, nfs, object, export_ip_pool, filesystem, m
export_ip_pool (list), filesystem (string), mountpoint (string)
"""
exports = []
export_node_ip_map = []
if enable_ces == "True":
filesets_name_size = {
key.split('/')[-1]: value for key, value in filesets.items()}
exports = list(filesets_name_size.keys())

# Creating map of CES nodes and it Ips
export_node_ip_map = [{protocol_cluster_instance_name.split(
'.')[0]: ip} for protocol_cluster_instance_name, ip in zip(protocol_cluster_instance_names, export_ip_pool)]
export_node_ip_map = [{protocol_cluster_instance_name.split('.')[0]: ip} for protocol_cluster_instance_name, ip in zip(protocol_cluster_instance_names, export_ip_pool)]

ces = {
"scale_protocols": {
Expand Down

0 comments on commit 831a06c

Please sign in to comment.