mirror of
https://github.com/ansible/awx.git
synced 2026-08-04 12:00:03 -02:30
add a new vault_credential relationship to Job/JobTemplate
additionally, properly assign vault credentials to Jobs and JobTemplates as they're migrated to the new split model see: #5807 see: #5878
This commit is contained in:
@@ -88,6 +88,14 @@ class JobOptions(BaseModel):
|
||||
default=None,
|
||||
on_delete=models.SET_NULL,
|
||||
)
|
||||
vault_credential = models.ForeignKey(
|
||||
'Credential',
|
||||
related_name='%(class)ss_as_vault_credential+',
|
||||
blank=True,
|
||||
null=True,
|
||||
default=None,
|
||||
on_delete=models.SET_NULL,
|
||||
)
|
||||
cloud_credential = models.ForeignKey(
|
||||
'Credential',
|
||||
related_name='%(class)ss_as_cloud_credential+',
|
||||
|
||||
Reference in New Issue
Block a user