1"""
2Utils for proxy.
3"""
4
5
6import logging
7
8import salt.utils.platform
9
10log = logging.getLogger(__file__)
11
12
13def is_proxytype(opts, proxytype):
14    """
15    Is this a proxy minion of type proxytype
16    """
17    return (
18        salt.utils.platform.is_proxy()
19        and opts.get("proxy", {}).get("proxytype", None) == proxytype
20    )
21