|
@@ -283,6 +283,8 @@ def send_request(ecs_client, request):
|
|
|
:param request: 请求配置
|
|
|
:return: response
|
|
|
"""
|
|
|
+ print(ecs_client, request)
|
|
|
+ print(2222222222)
|
|
|
request.set_accept_format('json')
|
|
|
try:
|
|
|
response = ecs_client.do_action_with_exception(request)
|
|
@@ -304,6 +306,8 @@ def run_command(ecs_client, instance_ids, command):
|
|
|
:param command: 命令 type-string
|
|
|
:return:
|
|
|
"""
|
|
|
+ print(11111)
|
|
|
+ print(ecs_client, instance_ids, command)
|
|
|
for i in range(len(instance_ids) // 50 + 1):
|
|
|
instance_id_list = instance_ids[i * 50:(i + 1) * 50]
|
|
|
if len(instance_id_list) == 0:
|