summaryrefslogtreecommitdiffstats
path: root/lcm/lcm/pub/utils
diff options
context:
space:
mode:
authorying.yunlong <ying.yunlong@zte.com.cn>2017-03-28 11:34:36 +0800
committerying.yunlong <ying.yunlong@zte.com.cn>2017-03-28 11:34:36 +0800
commit37feb131a0d7dc25522ff52150d215ac284dd4bd (patch)
treec13b12dc1c8f96bc89da3ab5e6a8a8d0137aceb7 /lcm/lcm/pub/utils
parent3a3c17eab2bc490b9468c6ff0c0a248081ecab9f (diff)
Find some bugs and modify the codes
Change-Id: Id4c023d66a63579bda682d6cfefec3341f3eaf6e Issue-Id: GVNFM-44 Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
Diffstat (limited to 'lcm/lcm/pub/utils')
-rw-r--r--lcm/lcm/pub/utils/values.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lcm/lcm/pub/utils/values.py b/lcm/lcm/pub/utils/values.py
index 19b198ee..4b7855c0 100644
--- a/lcm/lcm/pub/utils/values.py
+++ b/lcm/lcm/pub/utils/values.py
@@ -31,3 +31,6 @@ def get_none(val, def_val=""):
def get_boolean(val, def_val=0):
return 1 if val else 0
+
+def get_integer(val, def_val=0):
+ return val if val else 0 \ No newline at end of file