diff --git a/pyvcloud/vcd/vdc.py b/pyvcloud/vcd/vdc.py index 3c01f9dd..8ac2f15d 100644 --- a/pyvcloud/vcd/vdc.py +++ b/pyvcloud/vcd/vdc.py @@ -547,7 +547,7 @@ def list_resources(self, entity_type=None): both are acceptable values. :return: a list of dictionaries, where each dictionary represents a - resource e.g. vApp templates, vApps. And each dictionary has 'name' + resource e.g. vApp templates, vApps. And each dictionary has 'name', 'href' and 'type' of the resource. :rtype: dict @@ -561,7 +561,8 @@ def list_resources(self, entity_type=None): entity_type.value == resource.get('type'): result.append({ 'name': resource.get('name'), - 'type': resource.get('type') + 'type': resource.get('type'), + 'href': resource.get('href') }) return result