mirror of
https://github.com/ansible/awx.git
synced 2026-01-27 08:31:28 -03:30
12 lines
303 B
Markdown
12 lines
303 B
Markdown
Extract credentials
|
|
===================
|
|
|
|
Credentials and encrypted settings can be extracted using the following snippet:
|
|
|
|
```python
|
|
# awx-manage shell_plus
|
|
>>> from awx.main.utils import decrypt_field
|
|
>>> cred = Credential.objects.get(name="my private key")
|
|
>>> decrypt_field(cred, "ssh_key_data")
|
|
```
|