Skip to content

Commit 0c30ed3

Browse files
committed
Remove str specifier which is default
1 parent 65f3fdd commit 0c30ed3

9 files changed

+41
-41
lines changed

awx_collection/plugins/modules/tower_credential.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def main():
284284
host=dict(),
285285
username=dict(),
286286
password=dict(no_log=True),
287-
ssh_key_data=dict(no_log=True, type='str'),
287+
ssh_key_data=dict(no_log=True),
288288
ssh_key_unlock=dict(no_log=True),
289289
authorize=dict(type='bool', default=False),
290290
authorize_password=dict(no_log=True),

awx_collection/plugins/modules/tower_inventory_source.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def main():
148148
# Any additional arguments that are not fields of the item can be added here
149149
argument_spec = dict(
150150
name=dict(required=True),
151-
new_name=dict(type='str'),
151+
new_name=dict(),
152152
description=dict(),
153153
inventory=dict(required=True),
154154
#
@@ -166,12 +166,12 @@ def main():
166166
group_by=dict(),
167167
overwrite=dict(type='bool'),
168168
overwrite_vars=dict(type='bool'),
169-
custom_virtualenv=dict(type='str', default=''),
169+
custom_virtualenv=dict(default=''),
170170
timeout=dict(type='int'),
171171
verbosity=dict(type='int', choices=[0, 1, 2]),
172172
update_on_launch=dict(type='bool'),
173173
update_cache_timeout=dict(type='int'),
174-
source_project=dict(type='str'),
174+
source_project=dict(),
175175
update_on_project_update=dict(type='bool'),
176176
state=dict(choices=['present', 'absent'], default='present'),
177177
)

awx_collection/plugins/modules/tower_job_launch.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -141,15 +141,15 @@
141141
def main():
142142
# Any additional arguments that are not fields of the item can be added here
143143
argument_spec = dict(
144-
name=dict(type='str', required=True, aliases=['job_template']),
145-
job_type=dict(type='str', choices=['run', 'check']),
146-
inventory=dict(type='str', default=None),
144+
name=dict(required=True, aliases=['job_template']),
145+
job_type=dict(choices=['run', 'check']),
146+
inventory=dict(default=None),
147147
# Credentials will be a str instead of a list for backwards compatability
148148
credentials=dict(type='list', default=None, aliases=['credential'], elements='str'),
149149
limit=dict(),
150150
tags=dict(type='list', elements='str'),
151151
extra_vars=dict(type='dict'),
152-
scm_branch=dict(type='str'),
152+
scm_branch=dict(),
153153
skip_tags=dict(type='list', elements='str'),
154154
verbosity=dict(type='int', choices=[0, 1, 2, 3, 4, 5]),
155155
diff_mode=dict(type='bool'),

awx_collection/plugins/modules/tower_label.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@
6666
def main():
6767
# Any additional arguments that are not fields of the item can be added here
6868
argument_spec = dict(
69-
name=dict(required=True, type='str'),
70-
new_name=dict(type='str'),
71-
organization=dict(required=True, type='str'),
69+
name=dict(required=True),
70+
new_name=dict(),
71+
organization=dict(required=True),
7272
state=dict(choices=['present'], default='present'),
7373
)
7474

awx_collection/plugins/modules/tower_organization.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@
8282
def main():
8383
# Any additional arguments that are not fields of the item can be added here
8484
argument_spec = dict(
85-
name=dict(type='str', required=True),
86-
description=dict(type='str'),
87-
custom_virtualenv=dict(type='str'),
85+
name=dict(required=True),
86+
description=dict(),
87+
custom_virtualenv=dict(),
8888
max_hosts=dict(type='int', default="0"),
89-
state=dict(type='str', choices=['present', 'absent'], default='present'),
89+
state=dict(choices=['present', 'absent'], default='present'),
9090
)
9191

9292
# Create a module for ourselves

awx_collection/plugins/modules/tower_project.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def main():
189189
scm_update_cache_timeout=dict(type='int', default=0),
190190
scm_allow_override=dict(type='bool'),
191191
job_timeout=dict(type='int', default=0),
192-
custom_virtualenv=dict(type='str'),
192+
custom_virtualenv=dict(),
193193
organization=dict(required=True),
194194
state=dict(choices=['present', 'absent'], default='present'),
195195
wait=dict(type='bool', default=True),

awx_collection/plugins/modules/tower_user.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,13 @@
114114
def main():
115115
# Any additional arguments that are not fields of the item can be added here
116116
argument_spec = dict(
117-
username=dict(required=True, type='str'),
118-
first_name=dict(type='str'),
119-
last_name=dict(type='str'),
120-
email=dict(type='str'),
117+
username=dict(required=True),
118+
first_name=dict(),
119+
last_name=dict(),
120+
email=dict(),
121121
is_superuser=dict(type='bool', default=False, aliases=['superuser']),
122122
is_system_auditor=dict(type='bool', default=False, aliases=['auditor']),
123-
password=dict(type='str', no_log=True),
123+
password=dict(no_log=True),
124124
state=dict(choices=['present', 'absent'], default='present'),
125125
)
126126

awx_collection/plugins/modules/tower_workflow_job_template.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -137,23 +137,23 @@ def update_survey(module, last_request):
137137
def main():
138138
# Any additional arguments that are not fields of the item can be added here
139139
argument_spec = dict(
140-
name=dict(required=True, type='str'),
141-
new_name=dict(type='str'),
142-
description=dict(type='str'),
140+
name=dict(required=True),
141+
new_name=dict(),
142+
description=dict(),
143143
extra_vars=dict(type='dict'),
144-
organization=dict(type='str'),
144+
organization=dict(),
145145
survey=dict(type='dict'), # special handling
146146
survey_enabled=dict(type='bool'),
147147
allow_simultaneous=dict(type='bool'),
148148
ask_variables_on_launch=dict(type='bool'),
149-
inventory=dict(type='str'),
150-
limit=dict(type='str'),
151-
scm_branch=dict(type='str'),
149+
inventory=dict(),
150+
limit=dict(),
151+
scm_branch=dict(),
152152
ask_inventory_on_launch=dict(type='bool'),
153153
ask_scm_branch_on_launch=dict(type='bool'),
154154
ask_limit_on_launch=dict(type='bool'),
155-
webhook_service=dict(type='str', choices=['github', 'gitlab']),
156-
webhook_credential=dict(type='str'),
155+
webhook_service=dict(choices=['github', 'gitlab']),
156+
webhook_credential=dict(),
157157
state=dict(choices=['present', 'absent'], default='present'),
158158
)
159159

awx_collection/plugins/modules/tower_workflow_job_template_node.py

+11-11
Original file line numberDiff line numberDiff line change
@@ -169,19 +169,19 @@
169169
def main():
170170
# Any additional arguments that are not fields of the item can be added here
171171
argument_spec = dict(
172-
identifier=dict(required=True, type='str'),
173-
workflow_job_template=dict(required=True, type='str', aliases=['workflow']),
174-
organization=dict(type='str'),
172+
identifier=dict(required=True),
173+
workflow_job_template=dict(required=True, aliases=['workflow']),
174+
organization=dict(),
175175
extra_data=dict(type='dict'),
176-
inventory=dict(type='str'),
177-
scm_branch=dict(type='str'),
178-
job_type=dict(type='str', choices=['run', 'check']),
179-
job_tags=dict(type='str'),
180-
skip_tags=dict(type='str'),
181-
limit=dict(type='str'),
176+
inventory=dict(),
177+
scm_branch=dict(),
178+
job_type=dict(choices=['run', 'check']),
179+
job_tags=dict(),
180+
skip_tags=dict(),
181+
limit=dict(),
182182
diff_mode=dict(type='bool'),
183-
verbosity=dict(type='str', choices=['0', '1', '2', '3', '4', '5']),
184-
unified_job_template=dict(type='str'),
183+
verbosity=dict(choices=['0', '1', '2', '3', '4', '5']),
184+
unified_job_template=dict(),
185185
all_parents_must_converge=dict(type='bool'),
186186
success_nodes=dict(type='list', elements='str'),
187187
always_nodes=dict(type='list', elements='str'),

0 commit comments

Comments
 (0)