Call to undefined function acquia_agent_get_subscription()

Created on 17 January 2023, about 2 years ago
Updated 24 January 2023, almost 2 years ago

Problem/Motivation

There is a drush command: solr-set-derived-key which uses acquia_search_set_derived_key_for_env callback. It calls acquia_agent_get_subscription function which is not defined in 7.x-4.x version:
https://git.drupalcode.org/project/acquia_connector/-/blob/7.x-4.x/acqui...

Steps to reproduce

Run drush solr-set-derived-key --env-id=acquia_search_server_1_1 --acquia-id=AAAA-12345 --acquia-key=abcdefgijklmnopqrstuvw12345

Drush commands terminates due to an error.
There is a message in db log:

Error: Call to undefined function acquia_agent_get_subscription() in acquia_search_set_derived_key_for_env() 

Proposed resolution

Replace acquia_agent_get_subscription() with function/method with similar logic to the removed one.

πŸ› Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

πŸ‡§πŸ‡ΎBelarus yurikulinkovich

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024