Skip to content

Commit

Permalink
kubevirt: do not show mac address which will be cleaned up in VM Clon…
Browse files Browse the repository at this point in the history
…eDialog
  • Loading branch information
suomiy committed Jul 22, 2019
1 parent 939c27f commit cdb1821
Showing 1 changed file with 4 additions and 6 deletions.
Expand Up @@ -22,12 +22,10 @@ import { getPvcResources, getPvcStorageClassName } from '../../../selectors/pvc/

import './_clone-vm-modal.scss';

const getNicsDescription = (vm: VMKind) => {
const interfaces = getInterfaces(vm);
return interfaces
.map((intface) => [intface.name, intface.model, intface.macAddress].filter((i) => !!i))
.map((intface) => <div key={intface[0]}>{intface.join(' - ')}</div>);
};
const getNicsDescription = (vm: VMKind) =>
getInterfaces(vm).map(({ name, model }) => (
<div key={name}>{model ? `${name} - ${model}` : name}</div>
));

const getDisksDescription = (
vm: VMKind,
Expand Down

0 comments on commit cdb1821

Please sign in to comment.