mirror of
https://github.com/ansible/awx.git
synced 2026-05-17 06:17:36 -02:30
Add param to getEnvironmentDetails allowing us to pass in a value rather than pulling it from the model
This commit is contained in:
@@ -113,8 +113,8 @@ function getVerbosityDetails () {
|
|||||||
return { label, value };
|
return { label, value };
|
||||||
}
|
}
|
||||||
|
|
||||||
function getEnvironmentDetails () {
|
function getEnvironmentDetails (custom_virtualenv) {
|
||||||
const value = resource.model.get('custom_virtualenv');
|
const value = custom_virtualenv || resource.model.get('custom_virtualenv');
|
||||||
|
|
||||||
if (!value || value === '') {
|
if (!value || value === '') {
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user