Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/interactive/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
Release History
===============

0.4.4
+++++
* Remove dependency of azure-cli-core's ENV_ADDITIONAL_USER_AGENT

0.4.3
+++++
* Fix config problem in interactive
Expand Down
2 changes: 1 addition & 1 deletion src/interactive/azext_interactive/azclishell/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------

VERSION = '0.4.3'
VERSION = '0.4.4'
7 changes: 5 additions & 2 deletions src/interactive/azext_interactive/azclishell/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
from six.moves import configparser
from knack.log import get_logger
from knack.util import CLIError
from azure.cli.core.commands.client_factory import ENV_ADDITIONAL_USER_AGENT
from azure.cli.core._profile import _SUBSCRIPTION_NAME, Profile
from azure.cli.core._session import ACCOUNT, CONFIG, SESSION
from azure.cli.core.api import get_config_dir
Expand Down Expand Up @@ -53,6 +52,7 @@
PART_SCREEN_EXAMPLE = .3
START_TIME = datetime.datetime.utcnow()
CLEAR_WORD = get_os_clear_screen_word()
_ENV_ADDITIONAL_USER_AGENT = 'AZURE_HTTP_USER_AGENT'

logger = get_logger(__name__)

Expand Down Expand Up @@ -98,7 +98,10 @@ def __init__(self, cli_ctx, style=None, completer=None,
self.completer = AzCompleter(self, None)
self.lexer = None
self.history = history or FileHistory(os.path.join(self.config.get_config_dir(), self.config.get_history()))
os.environ[ENV_ADDITIONAL_USER_AGENT] = 'AZURECLISHELL/' + VERSION
if os.environ.get(_ENV_ADDITIONAL_USER_AGENT):
os.environ[_ENV_ADDITIONAL_USER_AGENT] += ' AZURECLISHELL/' + VERSION
else:
os.environ[_ENV_ADDITIONAL_USER_AGENT] = 'AZURECLISHELL/' + VERSION

# OH WHAT FUN TO FIGURE OUT WHAT THESE ARE!
self._cli = None
Expand Down