Skip to content

Commit

Permalink
Change play.min.io:9000 to play.min.io (#782)
Browse files Browse the repository at this point in the history
  • Loading branch information
harshavardhana authored and kannappanr committed Aug 5, 2019
1 parent 7393d66 commit df7628c
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ You need four items in order to connect to MinIO object storage server.
from minio import Minio
from minio.error import ResponseError

minioClient = Minio('play.min.io:9000',
minioClient = Minio('play.min.io',
access_key='Q3AM3UQ867SPQQA43P2F',
secret_key='zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG',
secure=True)
Expand All @@ -55,7 +55,7 @@ minioClient = Minio('play.min.io:9000',
## Quick Start Example - File Uploader
This example program connects to a MinIO object storage server, makes a bucket on the server and then uploads a file to the bucket.

We will use the MinIO server running at [https://play.min.io:9000](https://play.min.io:9000) in this example. Feel free to use this service for testing and development. Access credentials shown in this example are open to the public.
We will use the MinIO server running at [https://play.min.io](https://play.min.io) in this example. Feel free to use this service for testing and development. Access credentials shown in this example are open to the public.

#### file-uploader.py

Expand All @@ -66,7 +66,7 @@ from minio.error import (ResponseError, BucketAlreadyOwnedByYou,
BucketAlreadyExists)

# Initialize minioClient with an endpoint and access/secret keys.
minioClient = Minio('play.min.io:9000',
minioClient = Minio('play.min.io',
access_key='Q3AM3UQ867SPQQA43P2F',
secret_key='zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG',
secure=True)
Expand Down
6 changes: 3 additions & 3 deletions README_zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ MinIO client需要以下4个参数来连接MinIO对象存储服务。
from minio import Minio
from minio.error import ResponseError

minioClient = Minio('play.min.io:9000',
minioClient = Minio('play.min.io',
access_key='Q3AM3UQ867SPQQA43P2F',
secret_key='zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG',
secure=True)
Expand All @@ -49,7 +49,7 @@ minioClient = Minio('play.min.io:9000',
## 示例-文件上传
本示例连接到一个MinIO对象存储服务,创建一个存储桶并上传一个文件到存储桶中。

我们在本示例中使用运行在 [https://play.min.io:9000](https://play.min.io:9000) 上的MinIO服务,你可以用这个服务来开发和测试。示例中的访问凭据是公开的。
我们在本示例中使用运行在 [https://play.min.io](https://play.min.io) 上的MinIO服务,你可以用这个服务来开发和测试。示例中的访问凭据是公开的。

#### file-uploader.py

Expand All @@ -60,7 +60,7 @@ from minio.error import (ResponseError, BucketAlreadyOwnedByYou,
BucketAlreadyExists)

# 使用endpoint、access key和secret key来初始化minioClient对象。
minioClient = Minio('play.min.io:9000',
minioClient = Minio('play.min.io',
access_key='Q3AM3UQ867SPQQA43P2F',
secret_key='zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG',
secure=True)
Expand Down
4 changes: 2 additions & 2 deletions docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from minio import Minio
from minio.error import ResponseError

minioClient = Minio('play.min.io:9000',
minioClient = Minio('play.min.io',
access_key='Q3AM3UQ867SPQQA43P2F',
secret_key='zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG',
secure=True)
Expand Down Expand Up @@ -71,7 +71,7 @@ __Example__
from minio import Minio
from minio.error import ResponseError

minioClient = Minio('play.min.io:9000',
minioClient = Minio('play.min.io',
access_key='Q3AM3UQ867SPQQA43P2F',
secret_key='zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG')
```
Expand Down
4 changes: 2 additions & 2 deletions docs/zh_CN/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from minio import Minio
from minio.error import ResponseError

minioClient = Minio('play.min.io:9000',
minioClient = Minio('play.min.io',
access_key='Q3AM3UQ867SPQQA43P2F',
secret_key='zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG',
secure=True)
Expand Down Expand Up @@ -71,7 +71,7 @@ __示例__
from minio import Minio
from minio.error import ResponseError

minioClient = Minio('play.min.io:9000',
minioClient = Minio('play.min.io',
access_key='Q3AM3UQ867SPQQA43P2F',
secret_key='zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG')
```
Expand Down
2 changes: 1 addition & 1 deletion examples/listen_notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

from minio import Minio

client = Minio('play.min.io:9000',
client = Minio('play.min.io',
access_key='Q3AM3UQ867SPQQA43P2F',
secret_key='zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG')

Expand Down
4 changes: 2 additions & 2 deletions minio/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,11 @@ class Minio(object):
Constructs a :class:`Minio <Minio>`.
Examples:
client = Minio('play.min.io:9000')
client = Minio('play.min.io')
client = Minio('s3.amazonaws.com', 'ACCESS_KEY', 'SECRET_KEY')
# To override auto bucket location discovery.
client = Minio('play.min.io:9000', 'ACCESS_KEY', 'SECRET_KEY',
client = Minio('play.min.io', 'ACCESS_KEY', 'SECRET_KEY',
region='us-east-1')
:param endpoint: Hostname of the cloud storage server.
Expand Down
4 changes: 2 additions & 2 deletions tests/functional/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1758,9 +1758,9 @@ def main():
access_key = os.getenv('ACCESS_KEY', 'Q3AM3UQ867SPQQA43P2F')
secret_key = os.getenv('SECRET_KEY',
'zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG')
server_endpoint = os.getenv('SERVER_ENDPOINT', 'play.min.io:9000')
server_endpoint = os.getenv('SERVER_ENDPOINT', 'play.min.io')
secure = os.getenv('ENABLE_HTTPS', '1') == '1'
if server_endpoint == 'play.min.io:9000':
if server_endpoint == 'play.min.io':
access_key = 'Q3AM3UQ867SPQQA43P2F'
secret_key = 'zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG'
secure = True
Expand Down

0 comments on commit df7628c

Please sign in to comment.