|
@@ -474,9 +474,12 @@ def update_server_group_server_weight(alb_client, server_group_id, instance_id,
|
|
try:
|
|
try:
|
|
alb_client.update_server_group_servers_attribute_with_options(request, runtime)
|
|
alb_client.update_server_group_servers_attribute_with_options(request, runtime)
|
|
print(f"Successfully updated server {instance_id} in group {server_group_id} to weight {weight}.")
|
|
print(f"Successfully updated server {instance_id} in group {server_group_id} to weight {weight}.")
|
|
- except Exception as error:
|
|
|
|
- print(str(error))
|
|
|
|
- UtilClient.assert_as_string(str(error))
|
|
|
|
|
|
+ except Exception as e:
|
|
|
|
+ # print(str(error))
|
|
|
|
+ # UtilClient.assert_as_string(str(error))
|
|
|
|
+ print('update_server_group_server_weight')
|
|
|
|
+ logging.error(e)
|
|
|
|
+ sys.exit()
|
|
|
|
|
|
def update_server_group_servers_attribute(alb_client, server_group_id_list, instance_id_list, weight_list, port):
|
|
def update_server_group_servers_attribute(alb_client, server_group_id_list, instance_id_list, weight_list, port):
|
|
"""
|
|
"""
|