diff --git a/src/alias/azext_alias/telemetry.py b/src/alias/azext_alias/telemetry.py index cd94be1fe64..feac4aec987 100644 --- a/src/alias/azext_alias/telemetry.py +++ b/src/alias/azext_alias/telemetry.py @@ -133,6 +133,9 @@ def set_number_of_aliases_registered(num_aliases): @decorators.suppress_all_exceptions(raise_in_diagnostics=True) def conclude(): + if not _session.aliases_hit: + return + _session.end_time = datetime.datetime.now() for properties in _session.generate_payload(): telemetry_core.add_extension_event(EXTENSION_NAME, properties) diff --git a/src/alias/azext_alias/version.py b/src/alias/azext_alias/version.py index e1db9d6e733..60641a40d32 100644 --- a/src/alias/azext_alias/version.py +++ b/src/alias/azext_alias/version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -VERSION = '0.1.0' +VERSION = '0.1.1' diff --git a/src/index.json b/src/index.json index c1818cd3de8..33f66034737 100644 --- a/src/index.json +++ b/src/index.json @@ -550,9 +550,9 @@ ], "alias": [ { - "filename": "alias-0.1.0-py2.py3-none-any.whl", - "sha256Digest": "9931712244da0c0b43de5857c9cc9361369244e8abd7b029c8620e449ce47379", - "downloadUrl": "https://azurecliprod.blob.core.windows.net/cli-extensions/alias-0.1.0-py2.py3-none-any.whl", + "filename": "alias-0.1.1-py2.py3-none-any.whl", + "sha256Digest": "e096bef74b6ce29046e91330d9a543d4292adc434df2152b3b25a1d129011d90", + "downloadUrl": "https://azurecliprod.blob.core.windows.net/cli-extensions/alias-0.1.1-py2.py3-none-any.whl", "metadata": { "azext.minCliCoreVersion": "2.0.28", "classifiers": [ @@ -590,7 +590,7 @@ "metadata_version": "2.0", "name": "alias", "summary": "Azure CLI Alias Extension", - "version": "0.1.0" + "version": "0.1.1" } } ]