def OVFOSNameID(flavor):
 version = OSVersion(flavor)
 arch = archFor(flavor)
 if ('ubuntu' in version):
  map = {'i386': ('Ubuntu', 93), 'x86_64': ('Ubuntu 64-bit', 94)}
 else:
  map = {'i386': ('Linux', 36), 'x86_64': ('Linux 64-bit', 101)}
 (osname, osid) = map[arch]
 return (osname, osid)

def OVFOSNameID ( flavor ) : version = OSVersion ( flavor ) arch = archFor ( flavor ) if ( 'ubuntu' in version ) : map = { 'i386' : ( 'Ubuntu' , 93 ) , 'x86_64' : ( 'Ubuntu 64-bit' , 94 ) } else : map = { 'i386' : ( 'Linux' , 36 ) , 'x86_64' : ( 'Linux 64-bit' , 101 ) } ( osname , osid ) = map [ arch ] return ( osname , osid )
return ovf-specified for flavor .