Skip to content

Commit

Permalink
comments list_logstores which is duplicated with list_logstore
Browse files Browse the repository at this point in the history
  • Loading branch information
wjo1212 committed Jan 4, 2018
1 parent 6794073 commit 64e7c31
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,6 @@ All the commands support below optional global options:
- get_logstore
- update_logstore
- list_logstore
- list_topics


**shard**
Expand Down Expand Up @@ -430,6 +429,7 @@ All the commands support below optional global options:
- update_index
- delete_index
- get_index_config
- list_topics

**cursor**

Expand Down
2 changes: 1 addition & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,6 @@ def create_logstore(self, project_name, logstore_name, ttl=2, shard_count=30):
- get_logstore
- update_logstore
- list_logstore
- list_topics


**分区**
Expand Down Expand Up @@ -440,6 +439,7 @@ def create_logstore(self, project_name, logstore_name, ttl=2, shard_count=30):
- update_index
- delete_index
- get_index_config
- list_topics

**游标**

Expand Down
2 changes: 1 addition & 1 deletion aliyunlogcli/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import logging

LOG_CLIENT_METHOD_BLACK_LIST = (r'_.+', r'\w+acl', 'set_source', 'delete_shard', 'heart_beat',
'set_user_agent', 'get_unicode',
'set_user_agent', 'get_unicode', 'list_logstores'
)

LOG_CREDS_FILENAME = "%s/.aliyunlogcli" % os.path.expanduser('~')
Expand Down
4 changes: 2 additions & 2 deletions tests/cmd_list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ aliyun log list_shards --project_name="dlq-test-cli-${RANDOM_NUMBER}" --logstore
aliyun log list_shipper --project_name="dlq-test-cli-${RANDOM_NUMBER}" --logstore_name="logstore2"
> {"count": 0, "shipper": [], "total": 0}

aliyun log list_logstores --request={\"project\":\"dlq-test-cli-${RANDOM_NUMBER}\"}
> {"count": 3, "logstores": ["logstore3", "logstore1", "logstore2"], "total": 3}
#aliyun log list_logstores --request={\"project\":\"dlq-test-cli-${RANDOM_NUMBER}\"}
#> {"count": 3, "logstores": ["logstore3", "logstore1", "logstore2"], "total": 3}

aliyun log list_topics --request="{\"project\":\"dlq-test-cli-${RANDOM_NUMBER}\", \"logstore\":\"logstore1\", \"token\":\"token1212\", \"line\":123}"
> ["topic1"]
Expand Down

0 comments on commit 64e7c31

Please sign in to comment.