如何在version_output['stdout'][0]['chassis_id']"? 我想检查'chassis_id'是否包含'Nexus 56'或'Nexus 60'
- assert:
that:
- "'Nexus 56' in version_output['stdout'][0]['chassis_id']"
- "'n6000' in version_output['stdout'][0]['isan_file_name']"
fail_msg: "This is not a N5600/N6000 chassis."
success_msg: "This is a N5600/N6000 chassis."
修正了以下错误:
("'Nexus 56' in version_output['stdout'][0]['chassis_id']") or ("'Nexus 60' in version_output['stdout'][0]['chassis_id']")