parameters: (self)
docstring: Copy package to remote node.
docstring_summary: Copy package to remote node.
docstring_tokens: Copy package to remote node .
function: def remote_copy_manager(self):
          """
          Copy package to remote node.
          """
          manager_from = os.path.dirname(os.path.dirname(
              os.path.dirname(os.path.realpath(__file__))))
          for node in self.agent_nodes:
              ip = node.get(Constant.NODE_IP)
              uname = node.get(Constant.NODE_USER)
              pwd = node.get(Constant.NODE_PWD)
  
              status, output = CommonTools.remote_copy_files(
                  ip, uname, pwd, manager_from, self.manager_path)
              if status != 0:
                  raise Exception(Errors.EXECUTE_RESULT['gauss_0406'] % (ip, output))
              else:
                  g.logger.info('Successfully copy manager to node[%s].' % ip)
function_tokens: def remote_copy_manager ( self ) : manager_from = os . path . dirname ( os . path . dirname ( os . path . dirname ( os . path . realpath ( __file__ ) ) ) ) for node in self . agent_nodes : ip = node . get ( Constant . NODE_IP ) uname = node . get ( Constant . NODE_USER ) pwd = node . get ( Constant . NODE_PWD ) status , output = CommonTools . remote_copy_files ( ip , uname , pwd , manager_from , self . manager_path ) if status != 0 : raise Exception ( Errors . EXECUTE_RESULT [ 'gauss_0406' ] % ( ip , output ) ) else : g . logger . info ( 'Successfully copy manager to node[%s].' % ip )