Skip to content

Commit

Permalink
fix copy project cross region bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wjo1212 committed Nov 23, 2017
1 parent 11373af commit 6660b45
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aliyunlogcli/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def maker(json_str):


def _make_log_client(to_client):
if not to_client:
if to_client:
if to_client == LOG_CONFIG_SECTION:
access_id, access_key, endpoint = load_default_config_from_file_env()
else:
Expand Down
2 changes: 1 addition & 1 deletion aliyunlogcli/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

__version__ = '0.1.0'
__version__ = '0.1.1'
from aliyun.log.version import USER_AGENT as SDK_USER_AGENT
USER_AGENT = 'log-cli-v-' + __version__ + ", " + SDK_USER_AGENT
3 changes: 3 additions & 0 deletions tests/cmd_list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ aliyun log get_check_point --project="dlq-test-cli-${RANDOM_NUMBER}" --logstore=
# copy project
aliyun log copy_project --from_project="dlq-test-cli-${RANDOM_NUMBER}" --to_project="dlq-test-cli-${RANDOM_NUMBER}-copied"

# copy with another account, here we use main
aliyun log copy_project --from_project="dlq-test-cli-${RANDOM_NUMBER}" --to_project="dlq-test-cli-${RANDOM_NUMBER}-copied2" --to_client="main"


# clean up
aliyun log remove_config_to_machine_group --project_name="dlq-test-cli-${RANDOM_NUMBER}" --config_name="config_name1" --group_name="group_name1"
Expand Down

0 comments on commit 6660b45

Please sign in to comment.