MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / _record

Function _record

unit-tests/test_sshkey_plugin.py:20–26  ·  view source on GitHub ↗
(login, hosts=('example.com',))

Source from the content-addressed store, hash-verified

18
19
20def _record(login, hosts=('example.com',)):
21 rec = vault.PasswordRecord()
22 rec.login = login
23 rec.custom.append(vault.CustomField.new_field('cmdr:private_key', _private_key_pem()))
24 for h in hosts:
25 rec.custom.append(vault.CustomField.new_field('cmdr:host', h))
26 return rec
27
28
29class _FakeChild:

Calls 2

_private_key_pemFunction · 0.85
new_fieldMethod · 0.45

Tested by

no test coverage detected