mirror of
https://github.com/ansible/awx.git
synced 2026-02-15 18:20:00 -03:30
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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user