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:
parent
af61ee043a
commit
4f72858f6a
@ -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)
|
||||
|
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user