Skip to content

Commit

Permalink
List modules that aren't in the kernel folder.
Browse files Browse the repository at this point in the history
  • Loading branch information
jhutchins authored and thatch45 committed Dec 20, 2012
1 parent a9c8c9c commit 7077793
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salt/modules/kmod.py
Expand Up @@ -50,7 +50,7 @@ def available():
salt '*' kmod.available
'''
ret = []
mod_dir = os.path.join('/lib/modules/', os.uname()[2], 'kernel')
mod_dir = os.path.join('/lib/modules/', os.uname()[2])
for root, dirs, files in os.walk(mod_dir):
for fn_ in files:
if '.ko' in fn_:
Expand Down

0 comments on commit 7077793

Please sign in to comment.