laforge submitted this change.
ts_102_221: EF.ARR: fix read_arr_record
`read_arr_record 1` failed with an AttributeError exception
because RECORD_NR must be all caps.
Change-Id: If44f9f2271293d3063f6c527e5a68dcfaeb5942e
---
M pySim/ts_102_221.py
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pySim/ts_102_221.py b/pySim/ts_102_221.py
index d97b3cf..e38483d 100644
--- a/pySim/ts_102_221.py
+++ b/pySim/ts_102_221.py
@@ -750,7 +750,7 @@
@cmd2.with_argparser(LinFixedEF.ShellCommands.read_rec_dec_parser)
def do_read_arr_record(self, opts):
"""Read one EF.ARR record in flattened, human-friendly form."""
- (data, _sw) = self._cmd.lchan.read_record_dec(opts.record_nr)
+ (data, _sw) = self._cmd.lchan.read_record_dec(opts.RECORD_NR)
data = self._cmd.lchan.selected_file.flatten(data)
self._cmd.poutput_json(data, opts.oneline)
To view, visit change 41580. To unsubscribe, or for help writing mail filters, visit settings.