def __parse_drac(output):
 drac = {}
 section = ''
 for i in output.splitlines():
  if (i.strip().endswith(':') and ('=' not in i)):
   section = i[0:(-1)]
   drac[section] = {}
  if ((len(i.rstrip()) > 0) and ('=' in i)):
   if (section in drac):
    drac[section].update(dict([[prop.strip() for prop in i.split('=')]]))
   else:
    section = i.strip()
    if ((section not in drac) and section):
     drac[section] = {}
 return drac

def __parse_drac ( output ) : drac = { } section = '' for i in output . splitlines ( ) : if ( i . strip ( ) . endswith ( ':' ) and ( '=' not in i ) ) : section = i [ 0 : ( - 1 ) ] drac [ section ] = { } if ( ( len ( i . rstrip ( ) ) > 0 ) and ( '=' in i ) ) : if ( section in drac ) : drac [ section ] . update ( dict ( [ [ prop . strip ( ) for prop in i . split ( '=' ) ] ] ) ) else : section = i . strip ( ) if ( ( section not in drac ) and section ) : drac [ section ] = { } return drac
parse dell drac output .