pgreco / rpms / cockpit

Forked from forks/areguera/rpms/cockpit 5 years ago
Clone
Blob Blame History Raw
From ddf02f21504708956b586988d797f2b23b53a950 Mon Sep 17 00:00:00 2001
From: Marius Vollmer <mvollmer@redhat.com>
Date: Thu, 3 Nov 2016 14:49:41 +0200
Subject: [4/7] networkmanager: Not all connections have a interface name

https://bugzilla.redhat.com/show_bug.cgi?id=1394668

Upstream commit:
5d3f012faf468235954083312b1bd15ac8fc29c8
    networkmanager: Not all connections have a interface name

Closes #5363
Signed-off-by: Stef Walter <stefw@redhat.com>
 * Signing off inclusion in the rhel-7.3.1 branch
---
 dist/networkmanager/network.js     | Bin 132973 -> 132976 bytes
 dist/networkmanager/network.js.map | Bin 1029014 -> 1029108 bytes
 pkg/networkmanager/interfaces.js   |   3 ++-
 3 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/dist/networkmanager/network.js b/dist/networkmanager/network.js
index ac346740af42b474d67e169402a8147b6a46708f..a5a1dba5cda0e4bc50df99453862cb89a8a605d6 100644
GIT binary patch
delta 22
ecmaFc$MK<$W5Xsh<`Olv=1peXH<>Z+z5oDpuL=7A

delta 18
acmey+$MLq0W5Xu1=B;Mix0*5Tz5oDOq6t0#

diff --git a/dist/networkmanager/network.js.map b/dist/networkmanager/network.js.map
index dc53b3f715bd55e48472b2325ddf21fa1d556ee4..1b98808a10590f95af3df971bff95aef471d6f95 100644
GIT binary patch
delta 549
zcmbRC-0sVBy9u!(iD_m@Nl9tOMv2MBiAfe_MoA{g8w-n@867v@Z?2bT)Sn!`cqL=y
zX3iyP?Tk6o3$z)<+{%kReRYBz9fR|VoOE0r9Rpo-+&wFbJ<FV&L0m@{oj@R&@1+y$
zWdT>}1yu=D5bUAj?rpjKj5edWq-<#k)Ucc~m|;*Qz8MwU6<is=7|WDbctI?5L^Z^}
zD$94eqAR2R_V`N1o8tAE*}kai+ye^={7{{xW8oZRP~Znq2X-&W`N4)5>e7pyLedM-
z6^3RMq8nK07gh{bCj#^u%tWXk!b`TFp2)aEQbrqQQiUO!HzN(V&tJ{x`<pR$``cwq
z*Vj)kU}0fl&P&XlUTDH1HGP2%Gtcybf1En)AHtY{m<5PgftU@5*@2j2`-d>jOYB%9
za(a&_PtbJlbxeZW-;44rX4-xyk#ou%umvnY3sR?l^yg7-2O18<TtLhX#5_REyS?Ba
HpW0RcK1jBT

delta 522
zcmezJ+-}-)y9u!(X2wZoMuvu_7KVmqmd1w3sTRp58w-n@H@|AGl4rD>oVs`=WBF$O
zC28%kS;d}ZPR=^6j*gBlI)OkkzsN}^(4(~2(^n_h(J?p=$OTFUy6CujmSL#%(h2r5
zgDdrdssySJ_Rw+nHs5|po6%g7v3NR{E29*Xe))DaSH>^KGNlz>5W^i&HTYL#`A%1N
zWz^rETFH1*ygohK7ge2mU|xYAs&jQLoP#P0{2=PU{s1{OxC%pEda+Z8Hip7beGG+_
zeqn`$AOl5!-hi11^-_4z_KOo4cStf?Oz&FFD8*Q{ed%gO-`|Yc+dnU3y1st;xqqBG
z(^ptBOHDUO<B*-cA()wEdcuEBf$8@DIa#My$g_xn#5h1=674I)nSq!Eh*^P{4T#x+
ym}C3Oa84g~tZ_KKAedKdni!AG_UL#{kNNFD>wuUGh`E872Z(vMpZmwBwiN*KRIJJX

diff --git a/pkg/networkmanager/interfaces.js b/pkg/networkmanager/interfaces.js
index fa95d9c..4d0a751 100644
--- a/pkg/networkmanager/interfaces.js
+++ b/pkg/networkmanager/interfaces.js
@@ -1160,7 +1160,8 @@ function NetworkManagerModel() {
                 if (obj.Connections) {
                     obj.Connections.forEach(function (con) {
                         function add_to_interface(name) {
-                            get_interface(name).Connections.push(con);
+                            if (name)
+                                get_interface(name).Connections.push(con);
                         }
 
                         if (con.Settings) {
-- 
2.5.5