mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-26 03:19:48 +00:00
Revert "Fix non-unique name for similar inventory items."
This reverts commit 47a53a51e4
.
This commit is contained in:
parent
34b7abcb2d
commit
e7be24d478
@ -410,7 +410,6 @@ persistent_ipmicmds = {}
|
||||
class IpmiHandler(object):
|
||||
def __init__(self, operation, node, element, cfd, inputdata, cfg, output):
|
||||
self.sensormap = {}
|
||||
self.usedlabels = {}
|
||||
self.invmap = {}
|
||||
self.output = output
|
||||
self.sensorcategory = None
|
||||
@ -917,12 +916,7 @@ class IpmiHandler(object):
|
||||
if vstr:
|
||||
newinf['information']['PCI Vendor'] = vstr
|
||||
if dstr:
|
||||
newname = dstr
|
||||
instance = 1
|
||||
while newname in self.usednames:
|
||||
instance += 1
|
||||
newname = dstr + ' {1}'.format(instance)
|
||||
newinf['name'] = newname
|
||||
newinf['name'] = dstr
|
||||
invitems.append(newinf)
|
||||
|
||||
def handle_sensors(self):
|
||||
|
Loading…
Reference in New Issue
Block a user