'Translates VM settings in appengine-web.xml to yaml.'

def TranslateVmSettings(self):

    if ((not self.app_engine_web_xml.vm) and (self.app_engine_web_xml.env != '2')):
        return []
    settings = (self.app_engine_web_xml.vm_settings or {})
    settings['has_docker_image'] = 'True'
    statements = ['vm_settings:']
    for name in sorted(settings):
        statements.append(('        %s:    %s' % (self.SanitizeForYaml(name), self.SanitizeForYaml(settings[name]))))
    return statements
