Skip to content

Commit

Permalink
Basic precommit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kdaily committed Dec 20, 2024
1 parent dddb093 commit e7ebda6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions awscli/clidriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def _add_linux_distribution_to_user_agent(session):
if linux_distribution := _get_distribution():
add_metadata_component_to_user_agent_extra(
session,
'distrib',
'distrib',
linux_distribution,
)

Expand Down Expand Up @@ -453,7 +453,7 @@ def _cli_version(self):

if 'AWS_EXECUTION_ENV' in os.environ:
version_string += f' exec-env/{os.environ.get("AWS_EXECUTION_ENV")}'

version_string += f' {_get_distribution_source()}/{platform.machine()}'

if linux_distribution := _get_distribution():
Expand Down
1 change: 0 additions & 1 deletion awscli/customizations/sessendemail.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,3 @@ def __init__(self, name, json_key, help_text='', required=None):
def add_to_params(self, parameters, value):
if value:
_build_message(parameters, self._json_key, value)

2 changes: 1 addition & 1 deletion awscli/data/metadata.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"distribution_source": "source"
}
}
2 changes: 1 addition & 1 deletion awscli/paramfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,4 @@ def get_file(prefix, path, mode):
LOCAL_PREFIX_MAP = {
'file://': (get_file, {'mode': 'r'}),
'fileb://': (get_file, {'mode': 'rb'}),
}
}

0 comments on commit e7ebda6

Please sign in to comment.