diff options
author | Brett Holman <brett.holman@canonical.com> | 2022-06-09 14:17:02 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-09 15:17:02 -0500 |
commit | fed5d5a37362d1e3d0aecfcfb160f0c2f1a859a7 (patch) | |
tree | 338c3ff2ead9f3015a1042593381d6170500d588 /cloudinit/stages.py | |
parent | a2e6273872c2cafa73530e6c73178c2ebfc2beba (diff) | |
download | cloud-init-git-fed5d5a37362d1e3d0aecfcfb160f0c2f1a859a7.tar.gz |
Rename function to avoid confusion (#1501)
Currently find_modules() and find_module() are imported from cloudinit.util
and cloudinit.importer, respectively. Rename find_module() since its name
doesn't match what it does.
Diffstat (limited to 'cloudinit/stages.py')
-rw-r--r-- | cloudinit/stages.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/stages.py b/cloudinit/stages.py index 27af6055..66e12eed 100644 --- a/cloudinit/stages.py +++ b/cloudinit/stages.py @@ -576,7 +576,7 @@ class Init(object): # Attempts to register any handler modules under the given path. if not path or not os.path.isdir(path): return - potential_handlers = util.find_modules(path) + potential_handlers = util.get_modules_from_dir(path) for (fname, mod_name) in potential_handlers.items(): try: mod_locs, looked_locs = importer.find_module( |