Code Review
/
csit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
0348175
)
FIX: Add VatHistory for VATscript files.
69/14969/2
author
Peter Mikus
<pmikus@cisco.com>
Tue, 25 Sep 2018 10:03:32 +0000
(10:03 +0000)
committer
Peter Mikus
<pmikus@cisco.com>
Tue, 25 Sep 2018 11:19:49 +0000
(11:19 +0000)
Add ability to see Vat history for file sourced commands.
Change-Id: I49b19236bec7253ea412659368cb7ccb5f5e3274
Signed-off-by: Peter Mikus <pmikus@cisco.com>
resources/libraries/python/VatExecutor.py
patch
|
blob
|
history
diff --git
a/resources/libraries/python/VatExecutor.py
b/resources/libraries/python/VatExecutor.py
index
30aac2d
..
8b9d632
100644
(file)
--- 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,