- history = "\nNo PAPI command executed"
- if DICT__DUTS_PAPI_HISTORY[node['host']]:
- history = "".join(["\n{}".format(
- cmd) for cmd in DICT__DUTS_PAPI_HISTORY[node['host']]])
+ history_list = DICT__DUTS_PAPI_HISTORY[node['host']]
+ if not history_list:
+ history_list = ("No PAPI command executed", )