PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /proc/self/root/opt/saltstack/salt/extras-3.10/cpapis/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //proc/self/root/opt/saltstack/salt/extras-3.10/cpapis/_cpapi3.py |
"""cpapi3 functions""" from typing import Union from ._base import CpAPIBase class Cpapi3(CpAPIBase): """cpapi3 functions""" __module__ = 'cpapis' def __init__(self): if self._can_exec('/usr/bin/cpapi3'): super().__init__('/usr/bin/cpapi3') else: super().__init__('/usr/local/cpanel/bin/cpapi3') def __call__( self, module: str, user: Union[str, None] = None, args: Union[dict, None] = None, timeout: Union[float, None] = None, ): """Query cpapi3 Args: module: the cpapi3 module to use in format x::y user: ``--user`` arg to use args: key-vals to send to cpapi3 timeout: timeout for the cpapi3 command in secs """ return self._exec( module_args=module.split('::'), user=user, args=args, timeout=timeout, )