File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -265,14 +265,14 @@ def convert_sfp_info_to_output_string(sfp_info_dict):
265265 else :
266266 output += '{}{}:\n ' .format (indent , QSFP_DATA_MAP ['specification_compliance' ])
267267
268- spec_compliance_dict = {}
269- try :
270- spec_compliance_dict = ast .literal_eval (sfp_info_dict ['specification_compliance' ])
271- sorted_compliance_key_table = natsorted (spec_compliance_dict )
272- for compliance_key in sorted_compliance_key_table :
273- output += '{}{}: {}\n ' .format ((indent * 2 ), compliance_key , spec_compliance_dict [compliance_key ])
274- except ValueError as e :
275- output += '{}N/A\n ' .format ((indent * 2 ))
268+ spec_compliance_dict = {}
269+ try :
270+ spec_compliance_dict = ast .literal_eval (sfp_info_dict ['specification_compliance' ])
271+ sorted_compliance_key_table = natsorted (spec_compliance_dict )
272+ for compliance_key in sorted_compliance_key_table :
273+ output += '{}{}: {}\n ' .format ((indent * 2 ), compliance_key , spec_compliance_dict [compliance_key ])
274+ except ValueError as e :
275+ output += '{}N/A\n ' .format ((indent * 2 ))
276276 else :
277277 output += '{}{}: {}\n ' .format (indent , QSFP_DATA_MAP [key ], sfp_info_dict [key ])
278278
You can’t perform that action at this time.
0 commit comments