diff --git a/plugins/inventory/falcon_discover.py b/plugins/inventory/falcon_discover.py index 3e619868..1c0d60b0 100644 --- a/plugins/inventory/falcon_discover.py +++ b/plugins/inventory/falcon_discover.py @@ -166,6 +166,7 @@ class InventoryModule(BaseInventoryPlugin, Constructable, Cacheable): NAME = "crowdstrike.falcon.falcon_discover" def verify_file(self, path): + """Verify the inventory file.""" if super().verify_file(path): if re.match(r".{0,}falcon_discover\.(yml|yaml)$", path): return True diff --git a/plugins/modules/sensor_download.py b/plugins/modules/sensor_download.py index cf6b49f1..71509ced 100644 --- a/plugins/modules/sensor_download.py +++ b/plugins/modules/sensor_download.py @@ -133,7 +133,7 @@ def main(): if not dest: dest = mkdtemp() - os.chmod(dest, 0o755) #nosec + os.chmod(dest, 0o755) # nosec tmp_dir = True # Make sure path exists and is a directory