def update_secret(name, value): """Updates the secret""" secrets = get_secrets_names() if name not in secrets: LOG.error("Secret {} not present !!!".format(name)) return LOG.info("Updating secret {}".format(name)) Secret.update(name, value)
def update_secret(name, value): """Updates the secret""" secrets = get_secrets_names() if name not in secrets: click.echo(highlight_text("\nSecret not present !!!\n")) return Secret.update(name, value) click.echo(highlight_text("\nSecret updated !!!\n"))