Skip to content
This repository was archived by the owner on Apr 28, 2020. It is now read-only.

Commit 7443846

Browse files
yaacovrawagner
authored andcommitted
Do not filter by namespace if vm is missing a namespace (#316)
* remove filtering by namespace, it's should be done in caller component
1 parent 05a95ea commit 7443846

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/components/CreateNicRow/CreateNicRow.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ const getNetworkChoices = (vm, networks) => {
5858
const networkChoices = networks
5959
.filter(
6060
network =>
61-
network.metadata.namespace === vm.metadata.namespace &&
6261
!usedNetworks
6362
.filter(usedNetwork => usedNetwork.networkType === NETWORK_TYPE_MULTUS)
6463
.find(usedNetwork => usedNetwork.name === getName(network))

src/components/CreateNicRow/tests/CreateNicRow.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ describe('<CreateNicRow />', () => {
3434
vm: cloudInitTestVm,
3535
};
3636

37-
const component = mount(testCreateNicRow(networkConfigs, nic));
37+
const component = mount(testCreateNicRow([networkConfigs[0]], nic));
3838
expect(getNetworkConfigs(component)).toHaveLength(1);
3939
expect(
4040
getNetworkConfigs(component)

0 commit comments

Comments
 (0)