def _run_proxy_processes(proxies):
 ret = []
 for prox_ in proxies:
  proxy = prox_.keys()[0]
  result = {}
  if (not __salt__['salt_proxy.is_running'](proxy)['result']):
   __salt__['salt_proxy.configure_proxy'](proxy, start=True)
   result[proxy] = 'Proxy {0} was started'.format(proxy)
  else:
   msg = 'Proxy {0} is already running'.format(proxy)
   result[proxy] = msg
   log.debug(msg)
  ret.append(result)
 return ret

def _run_proxy_processes ( proxies ) : ret = [ ] for prox_ in proxies : proxy = prox_ . keys ( ) [ 0 ] result = { } if ( not __salt__ [ 'salt_proxy.is_running' ] ( proxy ) [ 'result' ] ) : __salt__ [ 'salt_proxy.configure_proxy' ] ( proxy , start = True ) result [ proxy ] = 'Proxy {0} was started' . format ( proxy ) else : msg = 'Proxy {0} is already running' . format ( proxy ) result [ proxy ] = msg log . debug ( msg ) ret . append ( result ) return ret
iterate over a list of proxy names and restart any that arent running .