Skip to content

Commit

Permalink
control-service: user-agent tag should have the correct format (#1412)
Browse files Browse the repository at this point in the history
# Why?
This PR is including a small fix that was supposed to be in this(#1403) PR. 
It's tested as described in the linked PR. 

# What?
Corrections to the tag format

# How has this been tested?
Tested as part of the previous ticket. 

# What type of change are you making?
Bug fix

Signed-off-by: murphp15 <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
murphp15 and pre-commit-ci[bot] authored Dec 6, 2022
1 parent cf3c71f commit 325453b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
import logging
import os
import pathlib
import platform
import sys
from configparser import ConfigParser
from pathlib import Path

from vdk.internal.control.command_groups.version_group import version
from vdk.internal.control.exception.vdk_exception import VDKException
from vdk.internal.control.utils.control_utils import read_config_ini_file

Expand All @@ -21,7 +23,7 @@ class VDKConfig:

_user_agent = os.environ.get(
"VDK_CONTROL_SERVICE_USER_AGENT",
f"vdk-control-cli/1.2 ({os.name}; {sys.platform})" + sys.version.split(" ")[0],
f"vdk-control-cli/{version.__version__} ({sys.platform}; {platform.platform()}; ) Python {platform.python_version()}",
)

@property
Expand Down

0 comments on commit 325453b

Please sign in to comment.