Skip to content

Commit

Permalink
Merge pull request #105 from grycap/devel
Browse files Browse the repository at this point in the history
Fix system_name func
  • Loading branch information
micafer authored Jul 12, 2024
2 parents 1d6520d + 6b13d4b commit c0cb4a8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions imclient/imclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,10 @@ def getvminfo(self, inf_id, vm_id, prop=None, system_name=None):
if system_name and success:
radl_info = radl_parse.parse_radl(resp.text)
if radl_info.systems[0].name == system_name:
info = radl_info.systems[0].getValue(prop)
if prop:
info = radl_info.systems[0].getValue(prop)
else:
info = resp.text
else:
info = ""
else:
Expand All @@ -756,7 +759,8 @@ def getvminfo(self, inf_id, vm_id, prop=None, system_name=None):
if success and system_name:
radl_info = radl_parse.parse_radl(info)
if radl_info.systems[0].name == system_name:
info = radl_info.systems[0].getValue(prop)
if prop:
info = radl_info.systems[0].getValue(prop)
else:
info = ""

Expand Down

0 comments on commit c0cb4a8

Please sign in to comment.