Alon Bar-Lev has uploaded a new change for review.

Change subject: vdsm: bridge: drop usage of util.getDefault()
......................................................................

vdsm: bridge: drop usage of util.getDefault()

Change-Id: Iba23c97ab98bf0581d909dad328dc44184aa73ce
Signed-off-by: Alon Bar-Lev <[email protected]>
---
M src/plugins/ovirt-host-deploy/vdsm/bridge.py
1 file changed, 5 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-host-deploy 
refs/changes/95/10695/1

diff --git a/src/plugins/ovirt-host-deploy/vdsm/bridge.py 
b/src/plugins/ovirt-host-deploy/vdsm/bridge.py
index 845c899..57ed445 100644
--- a/src/plugins/ovirt-host-deploy/vdsm/bridge.py
+++ b/src/plugins/ovirt-host-deploy/vdsm/bridge.py
@@ -487,9 +487,9 @@
                     'delNetwork',
                 ),
                 name,
-                util.getDefault(vlanid, ''),
+                vlanid if vlanid is not None else '',
                 '',     # bonding is not supported
-                util.getDefault(interface, ''),
+                interface if interface is not None else '',
             ),
         )
 
@@ -536,9 +536,9 @@
                         'addNetwork',
                     ),
                     name,
-                    util.getDefault(vlanid, ''),
-                    util.getDefault(bond, ''),
-                    util.getDefault(interface, ''),
+                    vlanid if vlanid is not None else '',
+                    bond if bond is not None else '',
+                    interface if interface is not None else '',
                 ] +
                 parameters
             ),


--
To view, visit http://gerrit.ovirt.org/10695
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iba23c97ab98bf0581d909dad328dc44184aa73ce
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-host-deploy
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to