Direktori : /proc/self/root/opt/saltstack/salt/lib/python3.10/site-packages/salt/utils/ |
Current File : //proc/self/root/opt/saltstack/salt/lib/python3.10/site-packages/salt/utils/proxy.py |
""" Utils for proxy. """ import logging import salt.utils.platform log = logging.getLogger(__file__) def is_proxytype(opts, proxytype): """ Is this a proxy minion of type proxytype """ return ( salt.utils.platform.is_proxy() and opts.get("proxy", {}).get("proxytype", None) == proxytype )