Merge "Made correction for url patch"

This commit is contained in:
Zuul 2020-02-07 15:47:15 +00:00 committed by Gerrit Code Review
commit e0e47358a4
1 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ def notify_ranger_agent_api(uuid):
for i in range(5):
time.sleep(15)
try:
resp = requests.post('%s/v1/ord/ord_notifier' % (url),
resp = requests.post(url,
files=files,
headers=headers)
if resp.status_code != 200:
@ -126,7 +126,7 @@ def validate_resource_status(uuid):
for i in range(5):
time.sleep(15)
try:
resp = requests.get('%s/v1/ord/ord_notifier?Id=%s' % (url, uuid))
resp = requests.get('%s?Id=%s' % (url, uuid))
if resp.status_code != 200:
sys.stderr.write("Unexpected status code received: %s\n" %
resp.status_code)