Skip to content
This repository was archived by the owner on Oct 15, 2020. It is now read-only.

Commit 6dbc439

Browse files
authored
Merge pull request #363 from HewlettPackard/api600/fix_scopeUris
Fixing issue for getting resource by scopeUris param
2 parents 78f0b46 + 512409b commit 6dbc439

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hpOneView/resources/resource.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def build_query_uri(self, start=0, count=-1, filter='', query='', sort='', view=
159159
fields = "&fields=" + quote(fields)
160160

161161
if scope_uris:
162-
scope_uris = "&scope_uris=" + quote(scope_uris)
162+
scope_uris = "&scopeUris=" + quote(scope_uris)
163163

164164
path = uri if uri else self._uri
165165
self.__validate_resource_uri(path)

tests/unit/resources/test_resource.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def test_get_all_called_once(self, mock_get):
108108
'&sort=name%3Aascending' \
109109
'&view=%22%7Bview-name%7D%22' \
110110
'&fields=name%2Cowner%2Cmodified' \
111-
'&scope_uris=/rest/scopes/cd237b60-09e2-45c4-829e-082e318a6d2a'.format(resource_uri=self.URI)
111+
'&scopeUris=/rest/scopes/cd237b60-09e2-45c4-829e-082e318a6d2a'.format(resource_uri=self.URI)
112112

113113
self.assertEqual([{'member': 'member'}], result)
114114
mock_get.assert_called_once_with(uri)

0 commit comments

Comments
 (0)