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

Method read_key

salt/crypt.py:1986–1991  ·  view source on GitHub ↗
(cls, path)

Source from the content-addressed store, hash-verified

1984
1985 @classmethod
1986 def read_key(cls, path):
1987 try:
1988 with salt.utils.files.fopen(path, "r") as fp:
1989 return fp.read()
1990 except FileNotFoundError:
1991 pass
1992
1993 @classmethod
1994 def extract_keys(cls, key_string, key_size):

Callers 7

read_or_generate_keyMethod · 0.80
session_keyMethod · 0.80
session_keyMethod · 0.80
session_keyMethod · 0.80
test_read_keyFunction · 0.80
test_read_key_multipleFunction · 0.80

Calls 1

readMethod · 0.45

Tested by 3

test_read_keyFunction · 0.64
test_read_key_multipleFunction · 0.64