|
@@ -57,7 +57,7 @@ class ObjectReady:
|
|
)
|
|
)
|
|
) for i in range(self.count_interface)])
|
|
) for i in range(self.count_interface)])
|
|
|
|
|
|
- return ARGS.delimiter.join((self.frame, self.cabinet, self.os, self.motherboard, self.cpu, self.ram, row_interface))+'\n'
|
|
|
|
|
|
+ return ARGS.delimiter.join((self.frame, self.cabinet, self.os, self.motherboard, self.cpu, self.ram, row_interface))
|
|
except AttributeError:
|
|
except AttributeError:
|
|
return None
|
|
return None
|
|
|
|
|
|
@@ -164,22 +164,21 @@ def create_csv(list_obj: list[ObjectReady]) -> None:
|
|
|
|
|
|
for obj in list_obj:
|
|
for obj in list_obj:
|
|
try:
|
|
try:
|
|
- f.write(obj.get_csv_row())
|
|
|
|
|
|
+ f.write(obj.get_csv_row() + '\n')
|
|
except TypeError as te:
|
|
except TypeError as te:
|
|
logger.error(F'{obj.path} -> {te}')
|
|
logger.error(F'{obj.path} -> {te}')
|
|
continue
|
|
continue
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
if __name__ == '__main__':
|
|
- print('start program')
|
|
|
|
|
|
+ logger.info("Start programm")
|
|
|
|
+
|
|
try:
|
|
try:
|
|
ARGS = parse.parse_args(sys.argv[1:])
|
|
ARGS = parse.parse_args(sys.argv[1:])
|
|
except argparse.ArgumentError:
|
|
except argparse.ArgumentError:
|
|
parse.print_help()
|
|
parse.print_help()
|
|
-
|
|
|
|
create_logger()
|
|
create_logger()
|
|
-
|
|
|
|
- logger.info("Start programm")
|
|
|
|
logger.info(F"Base dir: {ARGS.path}")
|
|
logger.info(F"Base dir: {ARGS.path}")
|
|
create_csv(get_ready_information())
|
|
create_csv(get_ready_information())
|
|
|
|
+
|
|
logger.info("Stop programm")
|
|
logger.info("Stop programm")
|