diff options
-rw-r--r-- | sos/plugins/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py index 435d69fe..1a28a1e3 100644 --- a/sos/plugins/__init__.py +++ b/sos/plugins/__init__.py @@ -174,6 +174,10 @@ class Plugin(object): globstr = '*' + cmd + '*' self.soslog.debug("substituting '%s' for '%s' in commands matching %s" % (subst, regexp, globstr)) + + if not self.executed_commands: + return 0 + try: for called in self.executed_commands: if fnmatch.fnmatch(called['exe'], globstr): |