Skip to content
This repository was archived by the owner on Mar 6, 2024. It is now read-only.

add href to resource object #773

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions pyvcloud/vcd/vdc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down