def get_ovf_descriptor(ovf_path):
 if path.exists(ovf_path):
  with open(ovf_path, 'r') as f:
   try:
    ovfd = f.read()
    f.close()
    return ovfd
   except:
    print ('Could not read file: %s' % ovf_path)
    exit(1)

def get_ovf_descriptor ( ovf_path ) : if path . exists ( ovf_path ) : with open ( ovf_path , 'r' ) as f : try : ovfd = f . read ( ) f . close ( ) return ovfd except : print ( 'Could not read file: %s' % ovf_path ) exit ( 1 )
read in the ovf descriptor .