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:
|
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'),
|
||||||
|
|
Loading…
Reference in a new issue