Skip to content

Commit 83e4f81

Browse files
authored
Merge pull request #269 from hpe-container-platform-community/patch-basepy-noparams
Fix gateway get request without params
2 parents d481538 + 6794db5 commit 83e4f81

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

hpecp/cli/base.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,10 @@ def get(self, id, output="yaml", params=None):
164164
self.client_module_property = getattr(
165165
self.client, self.client_module_name
166166
)
167-
response = self.client_module_property.get(id=id, params=params)
167+
if params:
168+
response = self.client_module_property.get(id=id, params=params)
169+
else:
170+
response = self.client_module_property.get(id=id)
168171
json_data = response.json
169172

170173
if output == "json":

0 commit comments

Comments
 (0)