remove show_secret
This commit is contained in:
parent
ab1f1bb5c3
commit
fbb663540c
2 changed files with 0 additions and 11 deletions
|
@ -37,15 +37,6 @@ environment:
|
||||||
negative_description: Ask values all variables
|
negative_description: Ask values all variables
|
||||||
alternative_name: qm
|
alternative_name: qm
|
||||||
default: false
|
default: false
|
||||||
show_secrets:
|
|
||||||
description: Show secrets instead of obscuring them
|
|
||||||
negative_description: Obscuring secrets instead of show them
|
|
||||||
alternative_name: qs
|
|
||||||
type: boolean
|
|
||||||
default:
|
|
||||||
type: variable
|
|
||||||
variable: __.exporter.show_secrets
|
|
||||||
optional: true
|
|
||||||
"""
|
"""
|
||||||
return {'name': 'environment',
|
return {'name': 'environment',
|
||||||
'process': 'user data',
|
'process': 'user data',
|
||||||
|
|
2
data.py
2
data.py
|
@ -98,8 +98,6 @@ class RougailUserDataEnvironment:
|
||||||
kwargs['choices'] = option.value.list()
|
kwargs['choices'] = option.value.list()
|
||||||
elif option_type == 'boolean':
|
elif option_type == 'boolean':
|
||||||
question_funtion = confirm
|
question_funtion = confirm
|
||||||
elif option_type == 'secret' and not self.rougailconfig['environment.show_secrets']:
|
|
||||||
question_funtion = password
|
|
||||||
else:
|
else:
|
||||||
question_funtion = text
|
question_funtion = text
|
||||||
kwargs['validate'] = RougailValidator
|
kwargs['validate'] = RougailValidator
|
||||||
|
|
Loading…
Reference in a new issue