From 76906c191bc0249e8858fa3487cc788bb2e15345 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 19 Oct 2015 14:13:02 -0400 Subject: [PATCH] Replace '/' in '-' in ipmi names '/' confuses our '/' delimited namespace. Use '-' instead. '_or_' was considered, but other meanings could be applied other than '/'. --- confluent_server/confluent/plugins/hardwaremanagement/ipmi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py b/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py index 31630c2e..b6407993 100644 --- a/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py +++ b/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py @@ -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):