While displaying the host pattern in the OSDs placement tab, it gets splited with semi-colons. Also adjusted the column size of Container Image ID and Placement columns.
Fixes: https://tracker.ceph.com/issues/50580
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
(cherry picked from commit
543b02436f18876a56757226c686a5c2c33c7c33)
Conflicts:
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/services.component.ts (PlacementPipe takes i18n as input param)
expect(
pipe.transform({
placement: {
- host_pattern: '*'
+ host_pattern: 'abc.ceph.xyz.com'
}
})
- ).toBe('*');
+ ).toBe('abc.ceph.xyz.com');
});
it('transforms placement (6)', () => {
kv.push(this.i18n('label:{{label}}', { label }));
}
if (_.isString(hostPattern)) {
- kv.push(...hostPattern);
+ kv.push(hostPattern);
}
return kv.join(';');
}
{
name: this.i18n('Container image ID'),
prop: 'status.container_image_id',
- flexGrow: 3,
+ flexGrow: 1.5,
cellTransformation: CellTemplate.truncate,
customTemplateConfig: {
length: 12
name: this.i18n('Placement'),
prop: '',
pipe: new PlacementPipe(this.i18n),
- flexGrow: 1
+ flexGrow: 2
},
{
name: this.i18n('Running'),