Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf81d0d9

Browse files
committed
minor fix reading addressing_style in profile config
1 parent53876fb commitf81d0d9

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

‎README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ pip install https://github.com/boto/botocore/archive/v2.zip https://github.com/a
6363

6464
##Change Log
6565

66+
* v0.16: Minor fix reading addressing_style in profile config
6667
* v0.15: Fix lookup of v1/v2 AWS CLI version, apply --s3-endpoint-url only for v1
6768
* v0.14: Quote file name for windows to allow folder names with spaces
6869
* v0.13: Fix extra requires for newer pip versions

‎bin/awslocal‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,10 @@ def run_in_process():
192192
try:
193193
profiles=session.full_config.get('profiles')
194194
ifprofiles:
195-
current_profile=profiles.get(profile_name)
196-
if (current_profile['s3'].get('addressing_style')in ['virtual','auto']):
197-
msg= ("Addressing style is being set to 'virtual' or 'auto' in the aws config. "
195+
current_profile=profiles.get(profile_name)or {}
196+
addressing_style=current_profile.get('s3', {}).get('addressing_style')
197+
ifaddressing_stylein ['virtual','auto']:
198+
msg= ("Addressing style is set to 'virtual' or 'auto' in the aws config. "
198199
"Please change it to 'path'.")
199200
print('WARNING: %s'%msg)
200201
exceptKeyError:

‎setup.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
setup(
88
name='awscli-local',
9-
version='0.15',
9+
version='0.16',
1010
description='Thin wrapper around the "aws" command line interface for use with LocalStack',
1111
author='Waldemar Hummer',
1212
author_email='waldemar.hummer@gmail.com',

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp