Index: shared/scripts/configuration/utility.py =================================================================== diff -u -r94e535b209b30b9aaae8174e92ea802f4a6c5452 -rb634bdd10b66a9b76dd6c3898b27f60bd25bcbdc --- shared/scripts/configuration/utility.py (.../utility.py) (revision 94e535b209b30b9aaae8174e92ea802f4a6c5452) +++ shared/scripts/configuration/utility.py (.../utility.py) (revision b634bdd10b66a9b76dd6c3898b27f60bd25bcbdc) @@ -12,8 +12,8 @@ # ############################################################################ -import test import csv +import test import os from datetime import datetime @@ -48,16 +48,15 @@ path = os.path.join(CLOUD_CREDENTIALS_LOCATION, PEM_FILES[file_handler]) with open(path, 'w') as file_reader: pass - - except OSError as error: + except OSError: test.log("Directory can not be created") def get_cloud_sync_input_file(): """ This function is the handler for getting file from log folder. Application log file is automatically created on '/home/denali/Desktop/sd-card/cloudsync/ {current_date}_inp.log' - @return latest_file - (string) returns latest file that append on log folder from sd-data + @return latest_file - (string) returns latest input log file path from sd-data """ try: current_date = get_current_date_and_time(date_format = "%Y_%m_%d") @@ -71,7 +70,7 @@ """ This function is the handler for getting file from log folder. Application log file is automatically created on '/home/denali/Desktop/sd-card/cloudsync/ {current_date}_out.log' - @return latest_file - (string) returns latest file that append on log folder from sd-data + @return latest_file - (string) returns latest output log file path from sd-data """ try: current_date = get_current_date_and_time(date_format = "%Y_%m_%d") @@ -85,7 +84,8 @@ """ This function is the handler for getting file from log folder. Application log data is automatically appended on '/home/denali/Desktop/sd-card/cloudsync/ {current_date}_out.log' - @return latest_file - (list) returns latest file that append on log folder from sd-data + @input readline_count (int) - number of line to be read from cloud-sync log. + @return cloudsync_data - (list) returns extracted log data. """ cloudsync_data = [] count = 0 @@ -109,8 +109,8 @@ """ This function is verify consistancy of epoch value. @input current_epoch_value (float) - current epoch time - @input expected_epoch_value (str) - epoch time from the cloud-sync log. - @return (bool) - True/False + @input expected_epoch_value (str) - epoch time from cloud-sync log. + @return (bool) - True - if expected value is in range. else, return False """ expected_epoch_value = int(expected_epoch_value) maximum_epoch_value = int(current_epoch_value + 25)