diff --git a/mtools/mloginfo/sections/connection_section.py b/mtools/mloginfo/sections/connection_section.py index 30982ffc..4d9aa55e 100644 --- a/mtools/mloginfo/sections/connection_section.py +++ b/mtools/mloginfo/sections/connection_section.py @@ -29,7 +29,7 @@ def active(self): def run(self): """ run this section and print out information. """ - if isinstance(self.mloginfo.logfile, ProfileCollection): + if ProfileCollection and isinstance(self.mloginfo.logfile, ProfileCollection): print print " not available for system.profile collections" print diff --git a/mtools/mloginfo/sections/distinct_section.py b/mtools/mloginfo/sections/distinct_section.py index a6fd75f6..e8345bdb 100644 --- a/mtools/mloginfo/sections/distinct_section.py +++ b/mtools/mloginfo/sections/distinct_section.py @@ -37,7 +37,7 @@ def run(self): and group by matched pattern. """ - if isinstance(self.mloginfo.logfile, ProfileCollection): + if ProfileCollection and isinstance(self.mloginfo.logfile, ProfileCollection): print print " not available for system.profile collections" print diff --git a/mtools/mloginfo/sections/restart_section.py b/mtools/mloginfo/sections/restart_section.py index 64af2e4b..de300fa6 100644 --- a/mtools/mloginfo/sections/restart_section.py +++ b/mtools/mloginfo/sections/restart_section.py @@ -28,7 +28,7 @@ def active(self): def run(self): - if isinstance(self.mloginfo.logfile, ProfileCollection): + if ProfileCollection and isinstance(self.mloginfo.logfile, ProfileCollection): print print " not available for system.profile collections" print