diff --git a/imclient/imclient.py b/imclient/imclient.py index e96e4de..06ba761 100755 --- a/imclient/imclient.py +++ b/imclient/imclient.py @@ -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: @@ -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 = ""