openmainframeproject / feilong

Feilong is a open source z/VM cloud connector project under the Open Mainframe Project umbrella that will accelerate the z/VM adoption, extending its ecosystem and its user experience. It provides a set of APIs to operate z/VM including guest, image, network, volume etc.
https://www.openmainframeproject.org/projects/feilong
Apache License 2.0
36 stars 70 forks source link

fix_sqliteRow_indexError_when_running_command_zvmsdk-getpchid #750

Closed jackydalong closed 1 year ago

jackydalong commented 1 year ago
jackydalong commented 1 year ago

Test result: the error is gone

[root@112-cmp-wdl ~]# /usr/bin/zvmsdk-getpchid  | python -m json.tool
{
    "cpc_sn": "0000000000082F57",
    "cpc_name": "M54",
    "hypervisor_hostname": "BOEM5401",
    "lpar": "ZVM4OCP1",
    "pchids": [
        {
            "pchid": "021C",
            "fcp_devices": "1B17",
            "fcp_devices_count": 1
        },
        {
            "pchid": "0264",
            "fcp_devices": "",
            "fcp_devices_count": 0
        },
        {
            "pchid": "02E4",
            "fcp_devices": "1A18",
            "fcp_devices_count": 1
        }
    ]
}