#NEWLINE# def set_proxy_bypass( domains , network_service = 'Ethernet' ) : #NEWLINE# #INDENT# '\n    Sets the domains that can bypass the proxy\n\n    domains\n        An array of domains allowed to bypass the proxy\n\n    network_service\n        The network service to apply the changes to, this only necessary on OSX\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt \'*\' proxy.set_proxy_bypass "[\'127.0.0.1\', \'localhost\']"\n\n    ' #NEWLINE# servers_str = ' ' . join ( domains ) #NEWLINE# cmd = 'networksetup -setproxybypassdomains {0} {1}' . format ( domains , servers_str ) #NEWLINE# out = __salt__ [ 'cmd.run' ] ( cmd ) #NEWLINE# return ( 'error' not in out )