mirror of
https://github.com/ansible/awx.git
synced 2026-05-15 21:37:42 -02:30
add validation errors for certain dependent credential fields
see: https://github.com/ansible/ansible-tower/issues/7323 see: https://github.com/ansible/ansible-tower/issues/7293 see: https://github.com/ansible/ansible-tower/issues/7289 see: https://github.com/ansible/ansible-tower/issues/7292
This commit is contained in:
@@ -632,7 +632,10 @@ def ssh(cls):
|
||||
'type': 'string',
|
||||
'secret': True,
|
||||
'ask_at_runtime': True
|
||||
}]
|
||||
}],
|
||||
'dependencies': {
|
||||
'ssh_key_unlock': ['ssh_key_data'],
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
@@ -665,7 +668,10 @@ def scm(cls):
|
||||
'label': 'Private Key Passphrase',
|
||||
'type': 'string',
|
||||
'secret': True
|
||||
}]
|
||||
}],
|
||||
'dependencies': {
|
||||
'ssh_key_unlock': ['ssh_key_data'],
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
@@ -725,7 +731,11 @@ def net(cls):
|
||||
'label': 'Authorize Password',
|
||||
'type': 'string',
|
||||
'secret': True,
|
||||
}]
|
||||
}],
|
||||
'dependencies': {
|
||||
'ssh_key_unlock': ['ssh_key_data'],
|
||||
'authorize_password': ['authorize'],
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user