Add prompt for verbosity.

This commit is contained in:
Aaron Tan
2017-05-04 14:32:08 -04:00
parent 6c7028f657
commit 18ba56964f
6 changed files with 30 additions and 8 deletions

View File

@@ -52,6 +52,7 @@ def job_template_prompts(project, inventory, machine_credential):
ask_inventory_on_launch=on_off,
ask_limit_on_launch=on_off,
ask_credential_on_launch=on_off,
ask_verbosity_on_launch=on_off,
)
return rf
@@ -71,6 +72,7 @@ def job_template_prompts_null(project):
ask_inventory_on_launch=True,
ask_limit_on_launch=True,
ask_credential_on_launch=True,
ask_verbosity_on_launch=True,
)

View File

@@ -55,8 +55,8 @@ class TestJobRelaunchAccess:
jt = JobTemplate.objects.create(
name='test-job-template-prompts', credential=machine_credential, inventory=inventory,
ask_tags_on_launch=True, ask_variables_on_launch=True, ask_skip_tags_on_launch=True,
ask_limit_on_launch=True, ask_job_type_on_launch=True, ask_inventory_on_launch=True,
ask_credential_on_launch=True)
ask_limit_on_launch=True, ask_job_type_on_launch=True, ask_verbosity_on_launch=True,
ask_inventory_on_launch=True, ask_credential_on_launch=True)
new_cred = Credential.objects.create(
name='new-cred',
credential_type=credentialtype_ssh,