Remove unnecessary module parameters

remove cases of required=False, the default
remove str type specifier which, the default
remove supports check mode, not changeable
This commit is contained in:
AlanCoding
2020-03-28 22:53:34 -04:00
parent 58160b9eb4
commit da661e45ae
25 changed files with 117 additions and 206 deletions

View File

@@ -79,7 +79,6 @@ options:
tower_oauthtoken:
description:
- The Tower OAuth token to use.
required: False
type: str
version_added: "3.7"
@@ -119,7 +118,7 @@ def main():
state=dict(choices=['present', 'absent'], default='present'),
)
module = TowerModule(argument_spec=argument_spec, supports_check_mode=True)
module = TowerModule(argument_spec=argument_spec)
role_type = module.params.pop('role')
role_field = role_type + '_role'