Install
Works with Drupal: ^10 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
11.62 KB
MD5: b4eec3e0d55a3cdc7ec7579799b9bc87
SHA-1: 380a392d44800e520c7caee08969685dd068effa
SHA-256: a8b1946b60b7d9c5c1a18312831721494be689668a0ba2a15ad81b829f8aa608
Download zip
14.71 KB
MD5: e5bcd86c45388080291ec352cc29abc4
SHA-1: 7931572ab4dac1f9093db50b7c18831e67e5adcf
SHA-256: c118061303b8890409ee6ee2f0fb26d7fe06736bec65f6c362439d26c6f4b308
Release notes
This release adds the ability to launch AWX job templates by name rather than by numeric ID, so consuming code no longer has to hardcode instance-specific template IDs (which differ between instances and shift when templates are added or removed).
New
AwxClient::createJobFromTemplateName(string $job_template_name, array $extra_variables)— resolves a job template's numeric ID from its unique name via the REST API, then launches it.AwxClient::getJobTemplateIdByName(string $job_template_name)— resolves a job template's numeric ID from its exact name (used by the method above; handy on its own).- Two new
AwxClient::REQUEST_FAILURE_MODESvalues —TEMPLATE_NOT_FOUNDandAMBIGUOUS_NAME— returned when a name resolves to zero or to more than one template.
Backwards-compatibility break
AwxClient::createJobFromTemplate() has been renamed to AwxClient::createJobFromTemplateId() to distinguish it from the new name-based method. Its signature is otherwise unchanged. Update any existing calls from createJobFromTemplate(...) to createJobFromTemplateId(...).
Other
- Added missing doc comments and resolved Drupal / DrupalPractice coding-standards issues in
AwxClient.