Skip to content

Commit 3e7479f

Browse files
committed
Fix indentation in device_class
1 parent 665fea5 commit 3e7479f

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

NetworkManager.py

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -365,32 +365,32 @@ def SpecificDevice(self):
365365

366366

367367
def device_class(typ):
368-
return {
369-
NM_DEVICE_TYPE_ADSL: Adsl,
370-
NM_DEVICE_TYPE_BOND: Bond,
371-
NM_DEVICE_TYPE_BRIDGE: Bridge,
372-
NM_DEVICE_TYPE_BT: Bluetooth,
373-
NM_DEVICE_TYPE_ETHERNET: Wired,
374-
NM_DEVICE_TYPE_GENERIC: Generic,
375-
NM_DEVICE_TYPE_INFINIBAND: Infiniband,
376-
NM_DEVICE_TYPE_IP_TUNNEL: IPTunnel,
377-
NM_DEVICE_TYPE_MACVLAN: Macvlan,
378-
NM_DEVICE_TYPE_MODEM: Modem,
379-
NM_DEVICE_TYPE_OLPC_MESH: OlpcMesh,
380-
NM_DEVICE_TYPE_TEAM: Team,
381-
NM_DEVICE_TYPE_TUN: Tun,
382-
NM_DEVICE_TYPE_VETH: Veth,
383-
NM_DEVICE_TYPE_VLAN: Vlan,
384-
NM_DEVICE_TYPE_VXLAN: Vxlan,
385-
NM_DEVICE_TYPE_WIFI: Wireless,
386-
NM_DEVICE_TYPE_WIMAX: Wimax,
387-
NM_DEVICE_TYPE_MACSEC: MacSec,
388-
NM_DEVICE_TYPE_DUMMY: Dummy,
389-
NM_DEVICE_TYPE_PPP: PPP,
390-
NM_DEVICE_TYPE_OVS_INTERFACE: OvsIf,
391-
NM_DEVICE_TYPE_OVS_PORT: OvsPort,
392-
NM_DEVICE_TYPE_OVS_BRIDGE: OvsBridge
393-
}[typ]
368+
return {
369+
NM_DEVICE_TYPE_ADSL: Adsl,
370+
NM_DEVICE_TYPE_BOND: Bond,
371+
NM_DEVICE_TYPE_BRIDGE: Bridge,
372+
NM_DEVICE_TYPE_BT: Bluetooth,
373+
NM_DEVICE_TYPE_ETHERNET: Wired,
374+
NM_DEVICE_TYPE_GENERIC: Generic,
375+
NM_DEVICE_TYPE_INFINIBAND: Infiniband,
376+
NM_DEVICE_TYPE_IP_TUNNEL: IPTunnel,
377+
NM_DEVICE_TYPE_MACVLAN: Macvlan,
378+
NM_DEVICE_TYPE_MODEM: Modem,
379+
NM_DEVICE_TYPE_OLPC_MESH: OlpcMesh,
380+
NM_DEVICE_TYPE_TEAM: Team,
381+
NM_DEVICE_TYPE_TUN: Tun,
382+
NM_DEVICE_TYPE_VETH: Veth,
383+
NM_DEVICE_TYPE_VLAN: Vlan,
384+
NM_DEVICE_TYPE_VXLAN: Vxlan,
385+
NM_DEVICE_TYPE_WIFI: Wireless,
386+
NM_DEVICE_TYPE_WIMAX: Wimax,
387+
NM_DEVICE_TYPE_MACSEC: MacSec,
388+
NM_DEVICE_TYPE_DUMMY: Dummy,
389+
NM_DEVICE_TYPE_PPP: PPP,
390+
NM_DEVICE_TYPE_OVS_INTERFACE: OvsIf,
391+
NM_DEVICE_TYPE_OVS_PORT: OvsPort,
392+
NM_DEVICE_TYPE_OVS_BRIDGE: OvsBridge
393+
}[typ]
394394

395395
class Adsl(Device): pass
396396
class Bluetooth(Device): pass

0 commit comments

Comments
 (0)