diff options
author | Tibor Frank <tifrank@cisco.com> | 2016-12-15 10:52:33 +0100 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2016-12-16 08:35:32 +0100 |
commit | cf561a6e3d4c4fbd78ab6c9d0a9aa817bb3300fc (patch) | |
tree | 0b4d5d2dbda78223d77d76e237285396d42c868e /resources/libraries/python/DUTSetup.py | |
parent | 677ae40a2be6db9f49b19ada3c4299a8904f7784 (diff) |
Pylint fixes
- Fix PyLint errors
- Fix comments in touched python modules
Change-Id: I26db2d292a41969cf38b9b0bdd49c4fb15349102
Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/libraries/python/DUTSetup.py')
-rw-r--r-- | resources/libraries/python/DUTSetup.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/resources/libraries/python/DUTSetup.py b/resources/libraries/python/DUTSetup.py index 6b2f5edb83..1f87f03cb9 100644 --- a/resources/libraries/python/DUTSetup.py +++ b/resources/libraries/python/DUTSetup.py @@ -88,8 +88,9 @@ class DUTSetup(object): ssh.connect(node) (ret_code, stdout, stderr) = \ - ssh.exec_command('sudo -Sn bash {0}/{1}/dut_setup.sh'.format( - Constants.REMOTE_FW_DIR, Constants.RESOURCES_LIB_SH), timeout=120) + ssh.exec_command('sudo -Sn bash {0}/{1}/dut_setup.sh'. + format(Constants.REMOTE_FW_DIR, + Constants.RESOURCES_LIB_SH), timeout=120) logger.trace(stdout) logger.trace(stderr) if int(ret_code) != 0: @@ -118,7 +119,7 @@ class DUTSetup(object): if int(ret_code) != 0: logger.debug('Not possible to get PID of VPP process on node: ' - '"{1}"'.format(node['host'], stdout + stderr)) + '{0}\n {1}'.format(node['host'], stdout + stderr)) raise RuntimeError('Not possible to get PID of VPP process on node:' ' {}'.format(node['host'])) |