Backport/2.7/54028 tower_settings: "get" isn't implemented, "value" parameter is required (#54051)

* tower_settings: "get" isn't implemented, "value" parameter is required (#54028)

* tower_settings doc: 'get' isn't implemented

* tower_settings: fix typo in argument_spec

(cherry picked from commit ac7df0ef65)

* Add changelog fragment for tower_settings bugfix
This commit is contained in:
Pilou 2019-03-19 18:12:09 +00:00 committed by Toshio Kuratomi
parent a11a56f27d
commit 7ef076db0e
2 changed files with 8 additions and 4 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- "tower_settings - 'name' and 'value' parameters are always required, module can not be used in order to get a setting"

View file

@ -20,15 +20,17 @@ author: "Nikhil Jain (@jainnikhil30)"
version_added: "2.7" version_added: "2.7"
short_description: Modify Ansible Tower settings. short_description: Modify Ansible Tower settings.
description: description:
- Get, Modify Ansible Tower settings. See - Modify Ansible Tower settings. See
U(https://www.ansible.com/tower) for an overview. U(https://www.ansible.com/tower) for an overview.
options: options:
name: name:
description: description:
- Name of setting to get/modify - Name of setting to modify
required: True
value: value:
description: description:
- Value to be modified for given setting. - Value to be modified for given setting.
required: True
extends_documentation_fragment: tower extends_documentation_fragment: tower
''' '''
@ -67,8 +69,8 @@ except ImportError:
def main(): def main():
argument_spec = dict( argument_spec = dict(
name=dict(Required=True), name=dict(required=True),
value=dict(Required=True), value=dict(required=True),
) )
module = TowerModule( module = TowerModule(