Esempio n. 1
0
def delete_secret(name):
    """Deletes the secret"""

    secrets = get_secrets_names()
    if name not in secrets:
        LOG.error("Secret {} not present !!!".format(name))
        return

    LOG.info("Deleting secret {}".format(name))
    Secret.delete(name)
Esempio n. 2
0
def delete_secret(name):
    """Deletes the secret"""

    secrets = get_secrets_names()
    if name not in secrets:
        click.echo(highlight_text("\nSecret not present !!!\n"))
        return

    Secret.delete(name)
    click.echo(highlight_text("\nSecret deleted !!!\n"))