mirror of
https://github.com/ansible/awx.git
synced 2026-02-17 11:10:03 -03:30
@@ -111,6 +111,7 @@ register(
|
|||||||
help_text=_('List of modules allowed to be used by ad-hoc jobs.'),
|
help_text=_('List of modules allowed to be used by ad-hoc jobs.'),
|
||||||
category=_('Jobs'),
|
category=_('Jobs'),
|
||||||
category_slug='jobs',
|
category_slug='jobs',
|
||||||
|
required=False,
|
||||||
)
|
)
|
||||||
|
|
||||||
register(
|
register(
|
||||||
|
|||||||
@@ -364,7 +364,12 @@ export default [
|
|||||||
payload[key] = _.map($scope[key], 'value').join(',');
|
payload[key] = _.map($scope[key], 'value').join(',');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
payload[key] = $scope[key].value;
|
if(multiselectDropdowns.indexOf(key) !== -1) {
|
||||||
|
// Default AD_HOC_COMMANDS to an empty list
|
||||||
|
payload[key] = $scope[key].value || [];
|
||||||
|
} else {
|
||||||
|
payload[key] = $scope[key].value;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else if($scope.configDataResolve[key].type === 'list' && $scope[key] !== null) {
|
} else if($scope.configDataResolve[key].type === 'list' && $scope[key] !== null) {
|
||||||
// Parse lists
|
// Parse lists
|
||||||
|
|||||||
Reference in New Issue
Block a user