Skip to content

Commit

Permalink
fix: remove depricated function + fix random
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoVoges committed Sep 11, 2023
1 parent 9aefb91 commit d4f3eab
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions kapitan/refs/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ def get_func_lookup():
"rsapublic": rsa_public_key,
"publickey": public_key,
"reveal": reveal,
"loweralphanum": loweralphanum,
"basicauth": basicauth,
}

Expand Down Expand Up @@ -147,13 +146,6 @@ def reveal(ctx, secret_path):
)


def loweralphanum(ctx, nchars="8"):
"""generates a DNS-compliant text string (a-z and 0-9), containing lower alphanum chars"""
# deprecated function
logger.info("DeprecationWarning: loweralphanum is deprecated. Use random:loweralphanum instead")
random(ctx, "loweralphanum", nchars)


def random(ctx, type="str", nchars="", special_chars=string.punctuation):
"""
generates a text string, containing nchars of given type
Expand Down

0 comments on commit d4f3eab

Please sign in to comment.