Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove todos and replace with issues #42

Merged
merged 1 commit into from
Jan 25, 2021
Merged
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
10 changes: 0 additions & 10 deletions plugins/module_utils/cmci.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,17 +445,7 @@ def _do_request(self): # type: () -> Dict
self.result['http_status_code'] = response.status_code
self.result['http_status'] = response.reason if response.reason else str(response.status_code)

# TODO: in OK responses CPSM sometimes returns error feedback information.

# TODO: in non-OK responses CPSM returns a body with error information
# Can recreate this by supplying a malformed body with a create request.
# We should surface this error information somehow. Not sure what content type we get.
if response.status_code != 200:
# TODO: <?xml version=\"1.0\" encoding=\"UTF-8\"?> \r\n<error message_id=\"DFHWU4007\" connect_version=
# \"0560\">\r\n\t<title> 400 CICS management client interface HTTP Error</title>\r\n\t<short>An error
# has occurred in the CICS management client interface. The request cannot be processed.</short>\r\n\t
# <full> The body of the HTTP request was not specified correctly.</full> \r\n</error>
# This sort of thing's probably relevant for warning count errors too
self._fail('CMCI request returned non-OK status: {0}'.format(self.result.get('http_status')))

# Try and parse the XML response body into a dict
Expand Down