已合并
fix: update UCG version parsing logic to support newer component versions #1198
wangjianming创建于 3月17日
fix: update UCG version parsing logic to support newer component versions #1198
已合并
共 1 个文件变更+1-1
| @@ -112,7 +112,7 @@ class InstallService: | |||
| 112 | def get_hmpi_info(self): | 112 | def get_hmpi_info(self): |
| 113 | name = 'hmpi' | 113 | name = 'hmpi' |
| 114 | 114 | ||
| 115 | - ucg_info = self.get_cmd_output("ucg_info -v |grep version")[0] | 115 | + ucg_info = self.get_cmd_output("ucg_info -v |grep version")[-1] |
| 116 | if "UCG" in ucg_info: | 116 | if "UCG" in ucg_info: |
| 117 | version = ucg_info.split()[3] | 117 | version = ucg_info.split()[3] |
| 118 | else: | 118 | else: |