-# Copyright (c) 2016 Cisco and/or its affiliates.
+# Copyright (c) 2018 Cisco and/or its affiliates.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
from robot.api import logger
-from resources.libraries.python.constants import Constants as Const
+from resources.libraries.python.Constants import Constants as Const
from resources.libraries.python.honeycomb.HoneycombUtil import HoneycombError
from resources.libraries.python.ssh import SSH
from resources.libraries.python.topology import NodeType
:type find: string
:type replace: string
:raises HoneycombError: If persistent configuration couldn't be
- modified.
+ modified.
"""
argument = "\"s/{0}/{1}/g\"".format(find, replace)
ssh = SSH()
ssh.connect(node)
for command in commands:
- (_, stdout, _) = ssh.exec_command_sudo(command)
- logger.info(stdout)
-
+ (_, _, _) = ssh.exec_command_sudo(command)
@staticmethod
def configure_persistence(node, state):