Skip to content

Commit

Permalink
fix undefined vars in function
Browse files Browse the repository at this point in the history
  • Loading branch information
luck3y committed Jun 5, 2019
1 parent afe3b24 commit b76ec48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions os-eap-probes/1.0/added/probes/probe/dmr.py
Expand Up @@ -94,11 +94,11 @@ def sendRequest(self, request):
response because one of the test steps failed, in which case we pass the
response to the tests to let them decide how to handle things
"""
self.failUnusableResponse(response)
self.failUnusableResponse(response, request, url)

return response.json(object_pairs_hook = OrderedDict)

def failUnusableResponse(self, response):
def failUnusableResponse(self, response, request, url):
respDict = None
try:
respDict = response.json(object_pairs_hook = OrderedDict)
Expand Down
4 changes: 2 additions & 2 deletions os-eap-probes/2.0/added/probes/probe/dmr.py
Expand Up @@ -94,11 +94,11 @@ def sendRequest(self, request):
response because one of the test steps failed, in which case we pass the
response to the tests to let them decide how to handle things
"""
self.failUnusableResponse(response)
self.failUnusableResponse(response, request, url)

return response.json(object_pairs_hook = OrderedDict)

def failUnusableResponse(self, response):
def failUnusableResponse(self, response, request, url):
respDict = None
try:
respDict = response.json(object_pairs_hook = OrderedDict)
Expand Down

0 comments on commit b76ec48

Please sign in to comment.