From 9ff6c40ed07a746d74237d832aaec9d8026493ae Mon Sep 17 00:00:00 2001 From: bryan hunt Date: Mon, 24 Mar 2014 14:17:36 +0000 Subject: [PATCH] Accept status code from a list of valid codes. --- library/network/uri | 4 ---- 1 file changed, 4 deletions(-) diff --git a/library/network/uri b/library/network/uri index ac12ffbb78..0d6cd7dc78 100644 --- a/library/network/uri +++ b/library/network/uri @@ -412,10 +412,6 @@ def main(): uresp['json'] = js except: pass - - sys.stderr.write("status ----> %s \n" % resp['status']) - sys.stderr.write("status_code ----> %s \n" % status_code) - if str(resp['status']) not in status_code: module.fail_json(msg="Status code was not " + str(status_code), content=content, **uresp) elif return_content: