On Mon, 2011-02-28 at 20:25 -0600, Greg Swift wrote: > Signed-off-by: Greg Swift <gregswift@xxxxxxxxx> > --- > func/minion/modules/rpms.py | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/func/minion/modules/rpms.py b/func/minion/modules/rpms.py > index b3eb11e..909f5d9 100644 > --- a/func/minion/modules/rpms.py > +++ b/func/minion/modules/rpms.py > @@ -48,10 +48,10 @@ class RpmModule(func_module.FuncModule): > Returns information on the verified package(s). > """ > results = [] > + from yum import YumBase > for rpm in self.glob(pattern, False): > name = rpm[0] > - > - yb = yum.YumBase() > + yb = YumBase() > pkgs = yb.rpmdb.searchNevra(name) > for pkg in pkgs: > errors = pkg.verify() just do: import yum yb = yum.YumBase() otherwise ack -sv _______________________________________________ Func-list mailing list Func-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/func-list