init_xls module

init_xls.get_server_list(drs_client)

Returns the full list of the source servers

Parameters:

drs_client (boto_client) – Boto DRS client

Returns:

list of dicts with all DRS source servers

Return type:

list

init_xls.init_aws_client(region)

Initializes DRS boto client

Parameters:

region (string) – AWS Region

Returns:

DRS client

Return type:

boto_client

init_xls.logActions(level, short_desc, long_desc)

Formats and prints logs

Parameters:
  • level (string) – Log level (INF,ERR)

  • short_desc (string) – Short log message

  • long_desc (string) – Long log message

init_xls.update_workbook(server_list, file_path)

Updates the XLS document

Parameters:
  • server_list (list) – list of the source servers

  • file_path (string) – path to the XLS doc