2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-21 11:12:04 +00:00

enhance openbmc ntpservers output

This commit is contained in:
xuweibj 2019-04-18 21:57:56 -04:00
parent f25b6b1efb
commit e918121d92

View File

@ -930,7 +930,7 @@ class OpenBMCRest(object):
utils.update2Ddict(netinfo, nicid, "vlanid", info.get("Id", "Disable"))
utils.update2Ddict(netinfo, nicid, "mac", info["MACAddress"])
ntpservers = None
tmp_ntpservers = ''.join(info["NTPServers"])
tmp_ntpservers = ','.join(info["NTPServers"])
if tmp_ntpservers:
ntpservers = tmp_ntpservers
utils.update2Ddict(netinfo, nicid, "ntpservers", ntpservers)