Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix pylint errors
[csit.git]
/
resources
/
libraries
/
python
/
honeycomb
/
HoneycombUtil.py
diff --git
a/resources/libraries/python/honeycomb/HoneycombUtil.py
b/resources/libraries/python/honeycomb/HoneycombUtil.py
index
a718a24
..
24f81af
100644
(file)
--- a/
resources/libraries/python/honeycomb/HoneycombUtil.py
+++ b/
resources/libraries/python/honeycomb/HoneycombUtil.py
@@
-399,16
+399,23
@@
class HoneycombUtil(object):
return HTTPRequest.delete(node, path)
@staticmethod
return HTTPRequest.delete(node, path)
@staticmethod
- def archive_honeycomb_log(node):
+ def archive_honeycomb_log(node
, perf=False
):
"""Copy honeycomb log file from DUT node to VIRL for archiving.
:param node: Honeycomb node.
"""Copy honeycomb log file from DUT node to VIRL for archiving.
:param node: Honeycomb node.
+ :param perf: Alternate handling, for use with performance test topology.
:type node: dict
:type node: dict
+ :type perf: bool
"""
ssh = SSH()
ssh.connect(node)
"""
ssh = SSH()
ssh.connect(node)
- cmd = "cp /var/log/honeycomb/honeycomb.log /scratch/"
-
- ssh.exec_command_sudo(cmd)
+ if not perf:
+ cmd = "cp /var/log/honeycomb/honeycomb.log /scratch/"
+ ssh.exec_command_sudo(cmd)
+ else:
+ ssh.scp(
+ ".",
+ "/var/log/honeycomb/honeycomb.log",
+ get=True)