Skip to content

Commit fd8bfbe

Browse files
committed
Fix for #53: no-region regression introduced by #51
1 parent 0a1e446 commit fd8bfbe

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 1.1.2 (2017-02-21)
2+
- #53: Fix for no-region regression introduced by #51
3+
14
## 1.1.1 (2017-02-16)
25
- #51: Add support for cn-north-1 region
36

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
NAME = yum-plugin-s3-iam
2-
VERSION = 1.1.1
2+
VERSION = 1.1.2
33
RELEASE = 1
44
ARCH = noarch
55

s3iam.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
__email__ = "julius@seporaitis.net"
3434
__copyright__ = "Copyright 2012, Julius Seporaitis"
3535
__license__ = "Apache 2.0"
36-
__version__ = "1.1.1"
36+
__version__ = "1.1.2"
3737

3838

3939
__all__ = ['requires_api_version', 'plugin_type', 'CONDUIT',
@@ -130,12 +130,11 @@ def __init__(self, repoid, repo):
130130

131131
if region:
132132
self.baseurl = "https://s3-%s.amazonaws.com/%s%s" % (region, bucket, path)
133+
if 'cn-north-1' in region:
134+
self.baseurl = "https://s3.cn-north-1.amazonaws.com.cn/%s%s" % (bucket, path)
133135
else:
134136
self.baseurl = "https://%s.s3.amazonaws.com%s" % (bucket, path)
135137

136-
if 'cn-north-1' in region:
137-
self.baseurl = "https://s3.cn-north-1.amazonaws.com.cn/%s%s" % (bucket, path)
138-
139138
self.name = repo.name
140139
self.region = repo.region if repo.region else region
141140
self.basecachedir = repo.basecachedir

yum-plugin-s3-iam.spec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ rm -rf ${RPM_BUILD_ROOT}
3737
/usr/lib/yum-plugins/s3iam.py*
3838

3939
%changelog
40+
* Tue Feb 21 2017 Mathias Brossard <mathias@brossard.org> 1.1.2-1
41+
- Fix for no-region regression introduced by cn-north-1 region support
42+
4043
* Thu Feb 16 2017 Mathias Brossard <mathias@brossard.org> 1.1.1-1
4144
- Add support for cn-north-1 region
4245

0 commit comments

Comments
 (0)