Explain how to extract credentials/settings

This commit is contained in:
Pierre-Louis Bonicoli
2020-03-06 18:18:20 +01:00
parent 1b8ff1f846
commit d75c2d9b44

View File

@@ -0,0 +1,11 @@
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")
```