[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [master 2/2] devicelibs/mpath.py: do not rely on other modules to import logging.



ack

On Thu, 2010-12-09 at 16:38 +0100, Ales Kozumplik wrote:
> I hear that pylint is complaining about this.
> ---
>  pyanaconda/storage/devicelibs/mpath.py |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/pyanaconda/storage/devicelibs/mpath.py b/pyanaconda/storage/devicelibs/mpath.py
> index d09f7c5..48f9c5c 100644
> --- a/pyanaconda/storage/devicelibs/mpath.py
> +++ b/pyanaconda/storage/devicelibs/mpath.py
> @@ -4,6 +4,9 @@ import re
>  from ..udev import *
>  from pyanaconda import iutil
>  
> +import logging
> +log = logging.getLogger("storage")
> +
>  def parseMultipathOutput(output):
>      # this function parses output from "multipath -d", so we can use its
>      # logic for our topology.

-- 
Martin Gracik <mgracik redhat com>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]