uri status_code elements are type int (#72062)

This commit is contained in:
Matt Martz 2020-10-02 13:36:14 -05:00 committed by GitHub
parent 2b79cd2c0f
commit 0e480d38dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- uri - ``status_code`` elements are type ``int``

View file

@ -107,7 +107,7 @@ options:
description: description:
- A list of valid, numeric, HTTP status codes that signifies success of the request. - A list of valid, numeric, HTTP status codes that signifies success of the request.
type: list type: list
elements: str elements: int
default: [ 200 ] default: [ 200 ]
timeout: timeout:
description: description:
@ -620,7 +620,7 @@ def main():
follow_redirects=dict(type='str', default='safe', choices=['all', 'no', 'none', 'safe', 'urllib2', 'yes']), follow_redirects=dict(type='str', default='safe', choices=['all', 'no', 'none', 'safe', 'urllib2', 'yes']),
creates=dict(type='path'), creates=dict(type='path'),
removes=dict(type='path'), removes=dict(type='path'),
status_code=dict(type='list', elements='str', default=[200]), status_code=dict(type='list', elements='int', default=[200]),
timeout=dict(type='int', default=30), timeout=dict(type='int', default=30),
headers=dict(type='dict', default={}), headers=dict(type='dict', default={}),
unix_socket=dict(type='path'), unix_socket=dict(type='path'),