Api issue float (#11757)

* Fix integer/float errors in survey

* Add SURVEY_TYPE_MAPPING to constants

Add SURVEY_TYPE_MAPPING to constants, and replace usage in a couple of
files.

Co-authored-by: Alexander Komarov <akomarov.me@gmail.com>
This commit is contained in:
Kersom
2022-03-04 14:03:17 -05:00
committed by GitHub
parent 0eac63b844
commit c6209df1e0
3 changed files with 38 additions and 6 deletions

View File

@@ -93,3 +93,5 @@ JOB_FOLDER_PREFIX = 'awx_%s_'
# /HOST-DIR:/CONTAINER-DIR:OPTIONS
CONTAINER_VOLUMES_MOUNT_TYPES = ['z', 'O', 'ro', 'rw']
MAX_ISOLATED_PATH_COLON_DELIMITER = 2
SURVEY_TYPE_MAPPING = {'text': str, 'textarea': str, 'password': str, 'multiplechoice': str, 'multiselect': str, 'integer': int, 'float': (float, int)}