From 8b67337fa6e06650421ab1971461813e33363a35 Mon Sep 17 00:00:00 2001 From: Ryan Date: Tue, 19 Jul 2022 19:20:43 -0400 Subject: [PATCH] need an object instantiation for validators --- blue/5G/daedalus/daedalus.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/blue/5G/daedalus/daedalus.py b/blue/5G/daedalus/daedalus.py index 72871b2a..ee39265a 100644 --- a/blue/5G/daedalus/daedalus.py +++ b/blue/5G/daedalus/daedalus.py @@ -316,14 +316,14 @@ def global_number_questions(enb): 'name': 'mcc', 'message': f'What MCC code for {enb} would you like?', 'default': '001', - 'validate': MCCValidator, + 'validate': MCCValidator(), }, { 'type': 'input', 'name': 'mnc', 'message': f'What MNC code for {enb} would you like?', 'default': '01', - 'validate': MNCValidator, + 'validate': MNCValidator(), }, ] @@ -344,7 +344,7 @@ def sdr_questions(enb): 'message': f'What EARFCN code for DL for {enb} would you like?', 'default': '3400', # TODO should also validate the EARFCN wasn't already used - 'validate': NumberValidator, + 'validate': NumberValidator(), 'filter': lambda val: int(val), }, { @@ -352,14 +352,14 @@ def sdr_questions(enb): 'name': 'txgain', 'message': f'What TX gain value for {enb} would you like?', 'default': '80', - 'validate': NumberValidator, + 'validate': NumberValidator(), }, { 'type': 'input', 'name': 'rxgain', 'message': f'What RX gain value for {enb} would you like?', 'default': '40', - 'validate': NumberValidator, + 'validate': NumberValidator(), }, ] @@ -432,7 +432,7 @@ def imsi_questions(): 'editor': 'nano', 'ext': '.json', }, - 'validate': IMSIValidator, + 'validate': IMSIValidator(), }, { 'type': 'confirm',