예제 #1
0
파일: secrets.py 프로젝트: tuxtof/calm-dsl
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)
예제 #2
0
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"))