From ada6ab929a6237ed53356f58569c81f0fb65bd2f Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 22 Aug 2022 11:29:17 -0400 Subject: [PATCH] Fix minor typos (#1036) --- .../azure/iot/device/provisioning/pipeline/config.py | 2 +- .../azure/iot/device/provisioning/pipeline/mqtt_pipeline.py | 2 +- .../iot/device/provisioning/pipeline/mqtt_topic_provisioning.py | 2 +- .../provisioning/pipeline/pipeline_stages_provisioning_mqtt.py | 2 +- devbox_setup.md | 2 +- migration_guide.md | 2 +- samples/README.md | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/azure-iot-device/azure/iot/device/provisioning/pipeline/config.py b/azure-iot-device/azure/iot/device/provisioning/pipeline/config.py index af2fcd7fe..c785c5bf3 100644 --- a/azure-iot-device/azure/iot/device/provisioning/pipeline/config.py +++ b/azure-iot-device/azure/iot/device/provisioning/pipeline/config.py @@ -20,7 +20,7 @@ def __init__(self, hostname, registration_id, id_scope, **kwargs): :param str hostname: The hostname of the Provisioning hub instance to connect to :param str registration_id: The device registration identity being provisioned - :param str id_scope: The identity of the provisoning service being used + :param str id_scope: The identity of the provisioning service being used """ super().__init__(hostname=hostname, **kwargs) diff --git a/azure-iot-device/azure/iot/device/provisioning/pipeline/mqtt_pipeline.py b/azure-iot-device/azure/iot/device/provisioning/pipeline/mqtt_pipeline.py index afa07107b..e410cd2c1 100644 --- a/azure-iot-device/azure/iot/device/provisioning/pipeline/mqtt_pipeline.py +++ b/azure-iot-device/azure/iot/device/provisioning/pipeline/mqtt_pipeline.py @@ -76,7 +76,7 @@ def __init__(self, pipeline_configuration): .append_stage(pipeline_stages_provisioning_mqtt.ProvisioningMQTTTranslationStage()) # # AutoConnectStage comes here because only MQTT ops have the need_connection flag set - # and this is the first place in the pipeline wherer we can guaranetee that all network + # and this is the first place in the pipeline where we can guarantee that all network # ops are MQTT ops. # .append_stage(pipeline_stages_base.AutoConnectStage()) diff --git a/azure-iot-device/azure/iot/device/provisioning/pipeline/mqtt_topic_provisioning.py b/azure-iot-device/azure/iot/device/provisioning/pipeline/mqtt_topic_provisioning.py index 79c5aa1eb..38660c6ad 100644 --- a/azure-iot-device/azure/iot/device/provisioning/pipeline/mqtt_topic_provisioning.py +++ b/azure-iot-device/azure/iot/device/provisioning/pipeline/mqtt_topic_provisioning.py @@ -89,7 +89,7 @@ def extract_properties_from_dps_response_topic(topic): properties = topic_parts[2] # NOTE: we cannot use urllib.parse.parse_qs because it always decodes '+' as ' ', - # and the behavior cannot be overriden. Must parse key/value pairs manually. + # and the behavior cannot be overridden. Must parse key/value pairs manually. if properties: key_value_pairs = properties.split("&") diff --git a/azure-iot-device/azure/iot/device/provisioning/pipeline/pipeline_stages_provisioning_mqtt.py b/azure-iot-device/azure/iot/device/provisioning/pipeline/pipeline_stages_provisioning_mqtt.py index 3ec99a32b..75cd319e3 100644 --- a/azure-iot-device/azure/iot/device/provisioning/pipeline/pipeline_stages_provisioning_mqtt.py +++ b/azure-iot-device/azure/iot/device/provisioning/pipeline/pipeline_stages_provisioning_mqtt.py @@ -49,7 +49,7 @@ def _run_op(self, op): query_params=urllib.parse.urlencode(query_param_seq, quote_via=urllib.parse.quote), ) - # Dynamically attach the derived MQTT values to the InitalizePipelineOperation + # Dynamically attach the derived MQTT values to the InitializePipelineOperation # to be used later down the pipeline op.username = username op.client_id = client_id diff --git a/devbox_setup.md b/devbox_setup.md index 10007d9e1..36d3c178a 100644 --- a/devbox_setup.md +++ b/devbox_setup.md @@ -18,7 +18,7 @@ python scripts/env_setup.py This will install not only relevant development and test dependencies, but also an editable install of the source code, which can then have any code changes immediately reflected in the install. -It is recommended to use [virtualenvwrapper](https://virtualenvwrapper.readthedocs.io/en/latest/install.html) for Unix-based platforms or [virutalenvwrapper-win](https://github.com/davidmarble/virtualenvwrapper-win) for Windows, in order to easily manage custom environments and switch Python versions, however this is optional. +It is recommended to use [virtualenvwrapper](https://virtualenvwrapper.readthedocs.io/en/latest/install.html) for Unix-based platforms or [virtualenvwrapper-win](https://github.com/davidmarble/virtualenvwrapper-win) for Windows, in order to easily manage custom environments and switch Python versions, however this is optional. ## Environment Variables (Optional) diff --git a/migration_guide.md b/migration_guide.md index 960b82676..5af5328e1 100644 --- a/migration_guide.md +++ b/migration_guide.md @@ -48,7 +48,7 @@ currently only supporting the MQTT protocol so it only requires to supply the co For x.509 device the v1 SDK required the user to supply the certificates in a call to set_options. Moving forward in the v2 SDK, we only require for the user to call the create function with an x.509 object containing the path to the x.509 file and -key file with the optional pass phrase if neccessary. +key file with the optional pass phrase if necessary. - v1 diff --git a/samples/README.md b/samples/README.md index fcf03bac0..94ca0b56c 100644 --- a/samples/README.md +++ b/samples/README.md @@ -64,7 +64,7 @@ This directory contains samples showing how to use the various features of the M async def main(): - # Fetch the connection string from an enviornment variable + # Fetch the connection string from an environment variable conn_str = os.getenv("IOTHUB_DEVICE_CONNECTION_STRING") # Create instance of the device client using the authentication provider