Skip to content

ssh_validator

drunc.apps.ssh_validator

Functions

main(configuration, session, log_level)

The script validates the ability to SSH onto all of the hosts required by the configuration session applications.

Source code in drunc/apps/ssh_validator.py
@click.command()
@click.argument("configuration", type=str, nargs=1)
@click.argument("session", type=str, nargs=1)
@click.option(
    "-l",
    "--log-level",
    type=click.Choice(logging_log_levels.keys(), case_sensitive=False),
    default="INFO",
    help="Set the log level",
)
def main(configuration: str, session: str, log_level: str) -> None:
    """The script validates the ability to SSH onto all of the hosts required by the configuration <configuration> session <session> applications."""
    validate_ssh_connection(configuration, session, log_level)