Mini Shell

Direktori : /opt/saltstack/salt/lib/python3.10/site-packages/salt/cli/
Upload File :
Current File : //opt/saltstack/salt/lib/python3.10/site-packages/salt/cli/key.py

import salt.utils.parsers
from salt.utils.verify import check_user


class SaltKey(salt.utils.parsers.SaltKeyOptionParser):
    """
    Initialize the Salt key manager
    """

    def run(self):
        """
        Execute salt-key
        """
        import salt.key

        self.parse_args()

        key = salt.key.KeyCLI(self.config)
        if check_user(self.config["user"]):
            key.run()

Zerion Mini Shell 1.0