Change etcd port entry in conf to int

When load config for etcd port, mark it as int instead of string.

Change-Id: Id7d354e1932ef00d6ed4e9592e8a6332e621729c
This commit is contained in:
Lin Yang 2016-12-20 17:44:43 -08:00 committed by Andy Yan
parent af61ee043a
commit 4f72858f6a
2 changed files with 2 additions and 2 deletions

View File

@ -70,4 +70,4 @@ redfish_base_ext = get_option("podm", "redfish_base_ext", "/redfish/v1/")
# Database etcd Settings
etcd_host = get_option("database_etcd", "host", "localhost")
etcd_port = get_option("database_etcd", "port", 2379)
etcd_port = get_option("database_etcd", "port", 2379, int)

View File

@ -22,7 +22,7 @@ etcd_directories = [
"/v1/pod_managers"
]
etcd_client = etcd.Client(config.etcd_host, int(config.etcd_port))
etcd_client = etcd.Client(config.etcd_host, config.etcd_port)
def init_etcd_db():