Antoni Segura Puimedon has posted comments on this change.

Change subject: Remove innecessary netinfo instance creation.
......................................................................


Patch Set 1: (2 inline comments)

Thanks for the review Mark!

....................................................
File vdsm/netinfo.py
Line 488:             self.networks[network] = getNetData(
Line 489:                 network, self.networks[network]['bridged'], 
getRoutes())
Line 490:         except KeyError:
Line 491:             del self.networks[network]
Line 492:             raise
I made it like this because it could very well be that you updateNetwork 
without knowing if it exists. It is reasonable, I think, to add as well a 
delNetwork. I'll consider adding it in a later patch.
Line 493: 
Line 494:     def updateBonds(self):
Line 495:         self.bondings = dict([(bond,


Line 490:         except KeyError:
Line 491:             del self.networks[network]
Line 492:             raise
Line 493: 
Line 494:     def updateBonds(self):
Sounds good. I will modify it accordingly.
Line 495:         self.bondings = dict([(bond,


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I0cef02dc89d927799bf92d36b790598707583195
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Antoni Segura Puimedon <[email protected]>
Gerrit-Reviewer: Antoni Segura Puimedon <[email protected]>
Gerrit-Reviewer: Dan Kenigsberg <[email protected]>
Gerrit-Reviewer: Igor Lvovsky <[email protected]>
Gerrit-Reviewer: Livnat Peer <[email protected]>
Gerrit-Reviewer: Mark Wu <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to