diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2008-02-04 17:42:18 -0500 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2008-02-04 17:42:18 -0500 |
commit | 6c28717779fb12abc7bf5ea434b61973dbe009a1 (patch) | |
tree | 2b878d99ee96fd6d642ee83cdcbe7d71500b7d39 /func/overlord/inventory.py | |
parent | 323f05de0a3ace6fd39bb75e97ce2ac52db2fa63 (diff) | |
download | func-6c28717779fb12abc7bf5ea434b61973dbe009a1.tar.gz func-6c28717779fb12abc7bf5ea434b61973dbe009a1.tar.xz func-6c28717779fb12abc7bf5ea434b61973dbe009a1.zip |
Get ready for release but also fix func-inventory so it understands the new hierarchies found in things such as the netapp module.
Diffstat (limited to 'func/overlord/inventory.py')
-rwxr-xr-x | func/overlord/inventory.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/func/overlord/inventory.py b/func/overlord/inventory.py index c2a1d30..8302a1c 100755 --- a/func/overlord/inventory.py +++ b/func/overlord/inventory.py @@ -96,7 +96,9 @@ class FuncInventory(object): # print "-- connection refused: %s" % host # break - (module_name, method_name) = each_method.split(".") + tokens = each_method.split(".") + module_name = ".".join(tokens[:-1]) + method_name = tokens[-1] if not "all" in filtered_module_list and not module_name in filtered_module_list: continue |