diff --git a/robottelo/utils/vault.py b/robottelo/utils/vault.py index 417fa2c13bd..0fe7eb7912b 100644 --- a/robottelo/utils/vault.py +++ b/robottelo/utils/vault.py @@ -64,7 +64,10 @@ def exec_vault_command(self, command: str, **kwargs): logger.error(f"Error! {self.HELP_TEXT}") sys.exit(1) if vcommand.stderr: - if 'Error revoking token' in verror: + if 'no such host' in verror: + logger.error("The Vault host is not reachable, check network availability.") + sys.exit() + elif 'Error revoking token' in verror: logger.info("Token is alredy revoked!") elif 'Error looking up token' in verror: logger.info("Vault is not logged in!")