def show_config():
 ret = {}
 cmd = 'cpan -J'
 out = __salt__['cmd.run'](cmd).splitlines()
 for line in out:
  if ('=>' not in line):
   continue
  comps = line.split('=>')
  key = comps[0].replace("'", '').strip()
  val = comps[1].replace("',", '').replace("'", '').strip()
  ret[key] = val
 return ret

def show_config ( ) : ret = { } cmd = 'cpan -J' out = __salt__ [ 'cmd.run' ] ( cmd ) . splitlines ( ) for line in out : if ( '=>' not in line ) : continue comps = line . split ( '=>' ) key = comps [ 0 ] . replace ( "'" , '' ) . strip ( ) val = comps [ 1 ] . replace ( "'," , '' ) . replace ( "'" , '' ) . strip ( ) ret [ key ] = val return ret
return a dict of cpan configuration values cli example: .