Fix os info issue

https://github.com/rancher/rancher/issues/12776
This commit is contained in:
loganhz 2018-04-25 17:38:53 +08:00
parent cd989a597a
commit dd3e022088
1 changed files with 11 additions and 0 deletions

View File

@ -41,6 +41,7 @@ export default Component.extend({
const kubernetes = get(info, 'kubernetes');
const os = get(info, 'os');
const arch = (get(node, 'labels') || {})['beta.kubernetes.io/arch'];
const osType = (get(node, 'labels') || {})['beta.kubernetes.io/os'];
if ( kubernetes ) {
array.push({
@ -62,6 +63,10 @@ export default Component.extend({
key: 'systemInfoSection.kernelVersion',
value: get(os, 'kernelVersion'),
});
array.push({
key: 'systemInfoSection.operatingSystem',
value: get(os, 'operatingSystem'),
});
}
if ( arch ) {
@ -70,6 +75,12 @@ export default Component.extend({
value: arch,
});
}
if ( osType ) {
array.push({
key: 'systemInfoSection.osType',
value: osType,
});
}
return array;
}