uri status_code elements are type int (#72062)
This commit is contained in:
parent
2b79cd2c0f
commit
0e480d38dd
2 changed files with 4 additions and 2 deletions
2
changelogs/fragments/uri-status-code-int.yml
Normal file
2
changelogs/fragments/uri-status-code-int.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- uri - ``status_code`` elements are type ``int``
|
|
@ -107,7 +107,7 @@ options:
|
|||
description:
|
||||
- A list of valid, numeric, HTTP status codes that signifies success of the request.
|
||||
type: list
|
||||
elements: str
|
||||
elements: int
|
||||
default: [ 200 ]
|
||||
timeout:
|
||||
description:
|
||||
|
@ -620,7 +620,7 @@ def main():
|
|||
follow_redirects=dict(type='str', default='safe', choices=['all', 'no', 'none', 'safe', 'urllib2', 'yes']),
|
||||
creates=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),
|
||||
headers=dict(type='dict', default={}),
|
||||
unix_socket=dict(type='path'),
|
||||
|
|
Loading…
Reference in a new issue