diff options
Diffstat (limited to 'lcm/pub/msapi/extsys.py')
-rw-r--r-- | lcm/pub/msapi/extsys.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lcm/pub/msapi/extsys.py b/lcm/pub/msapi/extsys.py index 0214406b..0d423b6d 100644 --- a/lcm/pub/msapi/extsys.py +++ b/lcm/pub/msapi/extsys.py @@ -49,12 +49,14 @@ def get_vim_by_id(vim_id): vim_info = convert_vim_info(vim_info_aai) return vim_info + def split_vim_to_owner_region(vim_id): split_vim = vim_id.split('_') cloud_owner = split_vim[0] cloud_region = "".join(split_vim[1:]) return cloud_owner, cloud_region + def convert_vim_info(vim_info_aai): vim_id = vim_info_aai["cloud-owner"] + "_" + vim_info_aai["cloud-region-id"] esr_system_info = ignore_case_get(ignore_case_get(vim_info_aai, "esr-system-info-list"), "esr-system-info") |