2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-17 21:23:18 +00:00

Replace '/' in '-' in ipmi names

'/' confuses our '/' delimited namespace.  Use '-'
instead.  '_or_' was considered, but other meanings
could be applied other than '/'.
This commit is contained in:
Jarrod Johnson 2015-10-19 14:13:02 -04:00
parent 61a0a66486
commit 76906c191b

View File

@ -58,7 +58,7 @@ def hex2bin(hexstring):
return bytearray(bytedata)
def simplify_name(name):
return name.lower().replace(' ', '_')
return name.lower().replace(' ', '_').replace('/', '-')
def sanitize_invdata(indata):