If an entity name (id.type) has more than one dot (i.e. 'type' has
dots), split only on the first one
Fixes: https://tracker.ceph.com/issues/43313
Signed-off-by: Dan Mick <dan.mick@redhat.com>
(cherry picked from commit
626c7dff0386dfc370d54561ae6bfa9866f2ee33)
continue
c = json.loads(crashinfo)
del c['utsname_hostname']
- (etype, eid) = c.get('entity_name', '').split('.')
+ # entity_name might have more than one '.', beware
+ (etype, eid) = c.get('entity_name', '').split('.', 1)
m = hashlib.sha1()
m.update(self.salt.encode('utf-8'))
m.update(eid.encode('utf-8'))