From 549e949c8e6a9a8bab1c25216b5d5db52eed3c3a Mon Sep 17 00:00:00 2001 From: Peter Mikus Date: Tue, 25 Sep 2018 10:03:32 +0000 Subject: FIX: Add VatHistory for VATscript files. Add ability to see Vat history for file sourced commands. Change-Id: I49b19236bec7253ea412659368cb7ccb5f5e3274 Signed-off-by: Peter Mikus --- resources/libraries/python/VatExecutor.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'resources/libraries/python') diff --git a/resources/libraries/python/VatExecutor.py b/resources/libraries/python/VatExecutor.py index 30aac2d417..8b9d632836 100644 --- a/resources/libraries/python/VatExecutor.py +++ b/resources/libraries/python/VatExecutor.py @@ -106,6 +106,9 @@ class VatExecutor(object): if copy_on_execute: ssh.scp(vat_name, vat_name) remote_file_path = vat_name + with open(vat_name, 'r') as vat_file: + for line in vat_file: + VatHistory.add_to_vat_history(node, line.replace('\n', '')) else: remote_file_path = '{0}/{1}/{2}'.format(Constants.REMOTE_FW_DIR, Constants.RESOURCES_TPL_VAT, -- cgit 1.2.3-korg