From 59dfd9949506178e45bef7200f6696183deb5f03 Mon Sep 17 00:00:00 2001 From: ygorelik Date: Fri, 26 Apr 2019 12:21:48 -0700 Subject: [PATCH] Resolved issue #916 --- ydkgen/printer/meta_data_util.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ydkgen/printer/meta_data_util.py b/ydkgen/printer/meta_data_util.py index 12b54da7f..8f2948cc1 100644 --- a/ydkgen/printer/meta_data_util.py +++ b/ydkgen/printer/meta_data_util.py @@ -462,8 +462,10 @@ def get_length_limits(length_type): pmin = m_min if m_max == 'max': pmax = '18446744073709551615' - else: + elif m_max is not None: pmax = m_max + else: + pmax = pmin prange.append((pmin, pmax)) return prange