tools/bdconfig/lib/google_hadoop/bdconfig_lib/xml_configuration.py
def ResolveEnvironmentVariables(self):
    """Replace <envVar/> elements with the corresponding environment variables.

    Raises:
      KeyError: If a variable is not set or empty.
      ValueError: If an <envVar/> element is malformed.
    """
    for node in self._document.getElementsByTagName('envVar'):
      var_name = node.getAttribute('name')
      if var_name:
        value = self._env_var_store.get(var_name)
        if not value:
          raise LookupError(
              'No environment variable named "{0}" found.'.format(var_name))
        text_node = self._document.createTextNode(value)
        node.parentNode.replaceChild(text_node, node)
      else:
        raise ValueError('envVar tag has no attribute name.')
    self._document.normalize()
Replace <envVar/> elements with the corresponding environment variables.

    Raises:
      KeyError: If a variable is not set or empty.
      ValueError: If an <envVar/> element is malformed.
    
Replace  elements with the corresponding environment variables.
Replace elements with the corresponding environment variables .
def ResolveEnvironmentVariables(self):
    for node in self._document.getElementsByTagName('envVar'):
      var_name = node.getAttribute('name')
      if var_name:
        value = self._env_var_store.get(var_name)
        if not value:
          raise LookupError(
              'No environment variable named "{0}" found.'.format(var_name))
        text_node = self._document.createTextNode(value)
        node.parentNode.replaceChild(text_node, node)
      else:
        raise ValueError('envVar tag has no attribute name.')
    self._document.normalize()
def ResolveEnvironmentVariables ( self ) : for node in self . _document . getElementsByTagName ( 'envVar' ) : var_name = node . getAttribute ( 'name' ) if var_name : value = self . _env_var_store . get ( var_name ) if not value : raise LookupError ( 'No environment variable named "{0}" found.' . format ( var_name ) ) text_node = self . _document . createTextNode ( value ) node . parentNode . replaceChild ( text_node , node ) else : raise ValueError ( 'envVar tag has no attribute name.' ) self . _document . normalize ( )
Replace <envVar/> elements with the corresponding environment variables.
Replace <envVar / > elements with the corresponding environment variables .
"""Replace <envVar/> elements with the corresponding environment variables.

    Raises:
      KeyError: If a variable is not set or empty.
      ValueError: If an <envVar/> element is malformed.
    """
If a variable is not set or empty.
If a variable is not set or empty .
KeyError
If an  element is malformed.
If an element is malformed .
ValueError
self