Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
acquia_connector-3273706
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
acquia_connector-3273706
Commits
36e2f892
Commit
36e2f892
authored
2 years ago
by
Matt Glaman
Committed by
Jakob P
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
DIT-897
Replace calls to rpc. in pages.inc (
#182
)
# Conflicts: # acquia_agent/acquia_agent.pages.inc
parent
e104303e
Branches
7.x-4.x
Tags
7.x-4.0-beta2
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
acquia_agent/acquia_agent.pages.inc
+4
-4
4 additions, 4 deletions
acquia_agent/acquia_agent.pages.inc
with
4 additions
and
4 deletions
acquia_agent/acquia_agent.pages.inc
+
4
−
4
View file @
36e2f892
...
...
@@ -164,7 +164,7 @@ function acquia_agent_automatic_setup_form_validate($form, &$form_state) {
$data
=
[
'body'
=>
$body
,
'authenticator'
=>
$authenticator
];
// Does not use acquia_agent_call() because Network identifier and key are
// not available.
$server
=
variable_get
(
'acquia_network_address'
,
'https://rpc.acquia.com'
);
$server
=
acquia_agent_settings
(
'acquia_network_address'
);
$result
=
_acquia_agent_request
(
acquia_agent_network_address
(
$server
),
'acquia.agent.communication.settings'
,
$data
);
if
(
$errno
=
xmlrpc_errno
()
!==
NULL
)
{
...
...
@@ -227,7 +227,7 @@ function _acquia_agent_automatic_start_submit(&$form_state) {
$data
=
[
'body'
=>
$body
,
'authenticator'
=>
$authenticator
];
// Does not use acquia_agent_call() because Network identifier and key are not
// available.
$server
=
variable_get
(
'acquia_network_address'
,
'https://rpc.acquia.com'
);
$server
=
acquia_agent_settings
(
'acquia_network_address'
);
$result
=
_acquia_agent_request
(
acquia_agent_network_address
(
$server
),
'acquia.agent.subscription.credentials'
,
$data
);
...
...
@@ -308,7 +308,7 @@ function acquia_agent_settings_credentials_validate($form, &$form_state) {
$key
=
$form_state
[
'values'
][
'acquia_key'
];
// Validate credentials and get subscription name.
$body
=
[
'identifier'
=>
$identifier
];
$data
=
acquia_agent_call
(
'acquia.agent.subscription.name'
,
$body
,
$identifier
,
$key
,
variable_get
(
'acquia_network_address'
,
'https://rpc.acquia.com'
)
);
$data
=
acquia_agent_call
(
'acquia.agent.subscription.name'
,
$body
,
$identifier
,
$key
);
$error
=
NULL
;
if
(
$errno
=
xmlrpc_errno
())
{
...
...
@@ -362,7 +362,7 @@ function _acquia_agent_setup_subscription_name() {
// Get subscription name.
$body
=
[
'identifier'
=>
$identifier
];
$data
=
acquia_agent_call
(
'acquia.agent.subscription.name'
,
$body
,
$identifier
,
$key
,
variable_get
(
'acquia_network_address'
,
'https://rpc.acquia.com'
)
);
$data
=
acquia_agent_call
(
'acquia.agent.subscription.name'
,
$body
,
$identifier
,
$key
);
if
(
$errno
=
xmlrpc_errno
())
{
$error
=
TRUE
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment