MCPcopy
hub / github.com/saltstack/salt / clean_key

Function clean_key

salt/crypt.py:105–109  ·  view source on GitHub ↗

Clean the key so that it only has unix style line endings (\\n)

(key)

Source from the content-addressed store, hash-verified

103
104
105def clean_key(key):
106 """
107 Clean the key so that it only has unix style line endings (\\n)
108 """
109 return "\n".join(key.strip().splitlines())
110
111
112def read_dropfile(cachedir):

Callers 4

_setup_keysMethod · 0.85
get_pub_strMethod · 0.85
verify_masterMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected