(action, node, path)
return True
Modifies the search nodes for a given path.

  Args:
    action: one of (["append", "delete"]) only.
    node: the node to append or delete.
    path: the DS path to modify.
  Returns:
    True on success
  Raises:
    DSException: Could not modify nodes for path.
Modifies the search nodes for a given path.
Modifies the search nodes for a given path .
def _ModifyCSPSearchPathForPath(action, node, path):
  """Modifies the search nodes for a given path.

  Args:
    action: one of (["append", "delete"]) only.
    node: the node to append or delete.
    path: the DS path to modify.
  Returns:
    True on success
  Raises:
    DSException: Could not modify nodes for path.
  """

  command = [_DSCL, path, '-%s' % action, '/', 'CSPSearchPath', node]
  (unused_stdout, stderr, returncode) = gmacpyutil.RunProcess(command)
  if returncode:
    raise DSException('Unable to perform %s on CSPSearchPath '
                      'for node: %s on path: %s '
                      'Error: %s '% (action, node, path, stderr))
  return True
def _ModifyCSPSearchPathForPath ( action , node , path ) : command = [ _DSCL , path , '-%s' % action , '/' , 'CSPSearchPath' , node ] ( unused_stdout , stderr , returncode ) = gmacpyutil . RunProcess ( command ) if returncode : raise DSException ( 'Unable to perform %s on CSPSearchPath ' 'for node: %s on path: %s ' 'Error: %s ' % ( action , node , path , stderr ) ) return True