From 5399a9dca3869f9912cb28ff3463736f40473c6b Mon Sep 17 00:00:00 2001 From: Gabe Alford Date: Mon, 2 Dec 2024 15:16:45 -0700 Subject: [PATCH] chore: fix typos --- changelogs/typos.yml | 2 ++ molecule/falcon_configure/molecule.yml | 2 +- molecule/falcon_configure_remove_aid/molecule.yml | 2 +- molecule/falcon_install/molecule.yml | 2 +- molecule/falcon_install_allow_downgrade/molecule.yml | 2 +- molecule/falcon_install_policy/molecule.yml | 2 +- molecule/falcon_uninstall/molecule.yml | 2 +- plugins/inventory/falcon_hosts.py | 4 ++-- plugins/module_utils/falconpy_utils.py | 6 +++--- plugins/modules/falconctl.py | 10 +++++----- plugins/modules/host_contain.py | 2 +- plugins/modules/host_hide.py | 2 +- plugins/modules/sensor_update_policy_info.py | 2 +- roles/falcon_install/defaults/main.yml | 6 +++--- 14 files changed, 24 insertions(+), 22 deletions(-) create mode 100644 changelogs/typos.yml diff --git a/changelogs/typos.yml b/changelogs/typos.yml new file mode 100644 index 00000000..1035bc34 --- /dev/null +++ b/changelogs/typos.yml @@ -0,0 +1,2 @@ +bugfixes: + - fix typos diff --git a/molecule/falcon_configure/molecule.yml b/molecule/falcon_configure/molecule.yml index 1d4b2fa7..4708913c 100644 --- a/molecule/falcon_configure/molecule.yml +++ b/molecule/falcon_configure/molecule.yml @@ -3,7 +3,7 @@ dependency: name: galaxy driver: name: ec2 -# The Default Platform is Ubunutu 20.04 LTS | T2.Micro | us-west-2 +# The Default Platform is Ubuntu 20.04 LTS | T2.Micro | us-west-2 platforms: - name: "${MOLECULE_INSTANCE_NAME:-default-falcon-configure}" image_owner: "${MOLECULE_IMAGE_OWNER:-099720109477}" diff --git a/molecule/falcon_configure_remove_aid/molecule.yml b/molecule/falcon_configure_remove_aid/molecule.yml index 2dcdfcaa..6a69f72a 100644 --- a/molecule/falcon_configure_remove_aid/molecule.yml +++ b/molecule/falcon_configure_remove_aid/molecule.yml @@ -3,7 +3,7 @@ dependency: name: galaxy driver: name: ec2 -# The Default Platform is Ubunutu 20.04 LTS | T2.Micro | us-west-2 +# The Default Platform is Ubuntu 20.04 LTS | T2.Micro | us-west-2 platforms: - name: "${MOLECULE_INSTANCE_NAME:-default-falcon-configure-remove-aid}" image_owner: "${MOLECULE_IMAGE_OWNER:-099720109477}" diff --git a/molecule/falcon_install/molecule.yml b/molecule/falcon_install/molecule.yml index cc701f72..b382ee29 100644 --- a/molecule/falcon_install/molecule.yml +++ b/molecule/falcon_install/molecule.yml @@ -3,7 +3,7 @@ dependency: name: galaxy driver: name: ec2 -# The Default Platform is Ubunutu 20.04 LTS | T2.Micro | us-west-2 +# The Default Platform is Ubuntu 20.04 LTS | T2.Micro | us-west-2 platforms: - name: "${MOLECULE_INSTANCE_NAME:-default-falcon-install}" image_owner: "${MOLECULE_IMAGE_OWNER:-099720109477}" diff --git a/molecule/falcon_install_allow_downgrade/molecule.yml b/molecule/falcon_install_allow_downgrade/molecule.yml index c62cf928..08dfac78 100644 --- a/molecule/falcon_install_allow_downgrade/molecule.yml +++ b/molecule/falcon_install_allow_downgrade/molecule.yml @@ -3,7 +3,7 @@ dependency: name: galaxy driver: name: ec2 -# The Default Platform is Ubunutu 20.04 LTS | T2.Micro | us-west-2 +# The Default Platform is Ubuntu 20.04 LTS | T2.Micro | us-west-2 platforms: - name: "${MOLECULE_INSTANCE_NAME:-default-falcon-install-allow-downgrade}" image_owner: "${MOLECULE_IMAGE_OWNER:-099720109477}" diff --git a/molecule/falcon_install_policy/molecule.yml b/molecule/falcon_install_policy/molecule.yml index 5a7df1f1..2b3ca72c 100644 --- a/molecule/falcon_install_policy/molecule.yml +++ b/molecule/falcon_install_policy/molecule.yml @@ -3,7 +3,7 @@ dependency: name: galaxy driver: name: ec2 -# The Default Platform is Ubunutu 20.04 LTS | T2.Micro | us-west-2 +# The Default Platform is Ubuntu 20.04 LTS | T2.Micro | us-west-2 platforms: - name: "${MOLECULE_INSTANCE_NAME:-default-falcon-install-policy}" image_owner: "${MOLECULE_IMAGE_OWNER:-099720109477}" diff --git a/molecule/falcon_uninstall/molecule.yml b/molecule/falcon_uninstall/molecule.yml index cc91a7be..19a69dbf 100644 --- a/molecule/falcon_uninstall/molecule.yml +++ b/molecule/falcon_uninstall/molecule.yml @@ -3,7 +3,7 @@ dependency: name: galaxy driver: name: ec2 -# The Default Platform is Ubunutu 20.04 LTS | T2.Micro | us-west-2 +# The Default Platform is Ubuntu 20.04 LTS | T2.Micro | us-west-2 platforms: - name: "${MOLECULE_INSTANCE_NAME:-default-falcon-uninstall}" image_owner: "${MOLECULE_IMAGE_OWNER:-099720109477}" diff --git a/plugins/inventory/falcon_hosts.py b/plugins/inventory/falcon_hosts.py index 03d36d38..65e200d8 100644 --- a/plugins/inventory/falcon_hosts.py +++ b/plugins/inventory/falcon_hosts.py @@ -73,9 +73,9 @@ notes: - By default, Ansible will deduplicate the C(inventory_hostname), so if multiple hosts have the same hostname, only the last one will be used. In this case, consider using the C(device_id) as the first preference in the C(hostnames). - You can use C(compose) to specify how Ansible will connectz to the host with the C(ansible_host) variable. + You can use C(compose) to specify how Ansible will connect to the host with the C(ansible_host) variable. - If no credentials are provided, FalconPy will attempt to use the API credentials via environment variables. - - The current behavior is to use the hostname if it exists, otherwise we will attemp to use either the external + - The current behavior is to use the hostname if it exists; otherwise, we will attempt to use either the external IP address or the local IP address. If neither of those exist, the host will be skipped as Ansible would not be able to connect to it. author: diff --git a/plugins/module_utils/falconpy_utils.py b/plugins/module_utils/falconpy_utils.py index 32696bb2..ffd13108 100644 --- a/plugins/module_utils/falconpy_utils.py +++ b/plugins/module_utils/falconpy_utils.py @@ -23,16 +23,16 @@ def check_falconpy_version(module): """Ensure FalconPy version is compatible.""" - minumum_version = "1.3.0" + minimum_version = "1.3.0" if FALCONPY_IMPORT_ERROR: module.fail_json( msg=f"Unable to import FalconPy: {FALCONPY_IMPORT_ERROR}. See module documentation for help." ) - if _VERSION < minumum_version: + if _VERSION < minimum_version: module.fail_json( - msg=f"Unsupported FalconPy version: {_VERSION}. Upgrade to {minumum_version} or higher." + msg=f"Unsupported FalconPy version: {_VERSION}. Upgrade to {minimum_version} or higher." ) diff --git a/plugins/modules/falconctl.py b/plugins/modules/falconctl.py index 57d89654..3d607e2a 100644 --- a/plugins/modules/falconctl.py +++ b/plugins/modules/falconctl.py @@ -40,7 +40,7 @@ description: - Installation tokens prevent unauthorized hosts from being accidentally or maliciously added to your customer ID (CID). - Optional security measure for your CID. - - This paramter requires supplying a C(cid). + - This parameter requires supplying a C(cid). type: str aid: description: @@ -188,7 +188,7 @@ def __init__(self, module): @classmethod def __list_to_string(cls, value): - """Converts paramaters passed as lists to strings""" + """Converts parameters passed as lists to strings""" if isinstance(value, list): # Make a copy and return it new_value = value[:] @@ -278,7 +278,7 @@ def check_mode(self, before): return values def execute(self): - """Run the falconctl commmand""" + """Run the falconctl command""" cmd = self.add_args(self.params["state"]) if not self.module.check_mode: self.__run_command(cmd) @@ -296,7 +296,7 @@ def get_values(self): return get_options(values) def validate_params(self, params): - """Ensure paramaters are valid""" + """Ensure parameters are valid""" if params["provisioning_token"]: # Ensure cid is also passed @@ -335,7 +335,7 @@ def validate_params(self, params): self.check_param("backend", ["auto", "bpf", "kernel"], True) def check_param(self, param, options, to_lower=False): - """Validate single paramater""" + """Validate single parameter""" if self.params[param]: parameter = self.params[param].lower() if to_lower else self.params[param] diff --git a/plugins/modules/host_contain.py b/plugins/modules/host_contain.py index 6476cc2f..8cd3046d 100644 --- a/plugins/modules/host_contain.py +++ b/plugins/modules/host_contain.py @@ -20,7 +20,7 @@ - Manages the network containment state of Falcon hosts. - To restrict a host that may be compromised from making network connections, contain it within the network. Lift containment to restore its regular communication capabilities. - - The module will return a list of successfull and failed hosts agent IDs (AIDs) for + - The module will return a list of successful and failed hosts agent IDs (AIDs) for the action performed. options: diff --git a/plugins/modules/host_hide.py b/plugins/modules/host_hide.py index c9a0659f..cfe08bef 100644 --- a/plugins/modules/host_hide.py +++ b/plugins/modules/host_hide.py @@ -21,7 +21,7 @@ - To prevent unnecessary detections from an inactive or a duplicate host, you can opt to hide the host from the console. This action does not uninstall or deactivate the sensor. Detection reporting resumes after a host is unhidden. - - The module will return a list of successfull and failed hosts agent IDs (AIDs) for + - The module will return a list of successful and failed hosts agent IDs (AIDs) for the action performed. options: diff --git a/plugins/modules/sensor_update_policy_info.py b/plugins/modules/sensor_update_policy_info.py index eee9be05..36e40749 100644 --- a/plugins/modules/sensor_update_policy_info.py +++ b/plugins/modules/sensor_update_policy_info.py @@ -51,7 +51,7 @@ crowdstike.falcon.sensor_update_policy_info: filter: "platform_name:'Windows'+enabled:'true'" -- name: Get Sensor Policies and sort assending by platform_name +- name: Get Sensor Policies and sort ascending by platform_name crowdstike.falcon.sensor_update_policy_info: sort: "platform_name.asc" """ diff --git a/roles/falcon_install/defaults/main.yml b/roles/falcon_install/defaults/main.yml index 4c6aea68..7b42c2a6 100644 --- a/roles/falcon_install/defaults/main.yml +++ b/roles/falcon_install/defaults/main.yml @@ -100,7 +100,7 @@ falcon_client_secret: "" # The Falcon sensor version to install. This allows you to pin a specific sensor # version. # -# NOTE: This variable will be overriden by falcon_sensor_update_policy_name. +# NOTE: This variable will be overridden by falcon_sensor_update_policy_name. # falcon_sensor_version: "" @@ -108,7 +108,7 @@ falcon_sensor_version: "" # Setting the value to 1 would install the sensor at N-1. # The value must be an integer between 0 and 5 inclusive. # -# NOTE: This variable will be overriden by falcon_sensor_update_policy_name or falcon_sensor_version. +# NOTE: This variable will be overridden by falcon_sensor_update_policy_name or falcon_sensor_version. # falcon_sensor_version_decrement: 0 @@ -168,7 +168,7 @@ falcon_windows_tmp_dir: "%SYSTEMROOT%\\Temp\\falcon-sensor" # falcon_windows_install_args: "/norestart" -# Additional arugments to uninstall the sensor. +# Additional arguments to uninstall the sensor. # You can add your maintenance token here by adding MAINTENANCE_TOKEN= # falcon_windows_uninstall_args: "/norestart"