Logo Search packages:      
Sourcecode: jockey version File versions  Download package

def jockey::oslib::OSLib::blacklist_module (   self,
  module,
  blacklist 
) [inherited]

Add or remove a kernel module from the modprobe blacklist.

If blacklist is True, the module is blacklisted, otherwise it is
removed from the blacklist.

Reimplemented in sandbox::AllAvailOSLib.

Definition at line 196 of file oslib.py.

00196                                                  :
        '''Add or remove a kernel module from the modprobe blacklist.
        
        If blacklist is True, the module is blacklisted, otherwise it is
        removed from the blacklist.
        '''
        if blacklist:
            self._module_blacklist.add(module)
        else:
            try:
                self._module_blacklist.remove(module)
            except KeyError:
                return # no need to save the blacklist

        self._save_module_blacklist()

    def _load_module_blacklist(self):


Generated by  Doxygen 1.6.0   Back to index