def create_secret(name, value): """Creates the secret""" secrets = get_secrets_names() if name in secrets: LOG.error("Secret {} already present !!!".format(name)) return LOG.debug("Creating secret {}".format(name)) Secret.create(name, value) LOG.info(highlight_text("Secret {} created".format(name)))
def create_secret(name, value): """Creates the secret""" secrets = get_secrets_names() if name in secrets: click.echo( highlight_text("\nSecret Already present !!!\nTry to update secret\n") ) return Secret.create(name, value) click.echo(highlight_text("\nSecret created !!! \n"))