def update(self): # If this fails mid operation we get a partially updated interface. # Suggestions are welcome. for key, value in self._conf.iteritems(): if key == 'iface.iscsi_ifacename': continue iscsiadm.iface_update(self.name, key, value)
def update(self): # If this fails mid operation we get a partially updated interface. # Suggestions are welcome. for key, value in self._conf.iteritems(): if value is None or key == 'iface.iscsi_ifacename': continue iscsiadm.iface_update(self.name, key, value)