Fix params names
This commit is contained in:
parent
6438016ee2
commit
dd53e4db9d
|
@ -151,23 +151,23 @@ class ConfigController extends ActionController
|
||||||
$configChecksum = $status->getConfigChecksumForStageName($stageName);
|
$configChecksum = $status->getConfigChecksumForStageName($stageName);
|
||||||
$activeConfiguration = [
|
$activeConfiguration = [
|
||||||
'stage_name' => $stageName,
|
'stage_name' => $stageName,
|
||||||
'config_checksum' => ($configChecksum) ? : null,
|
'config' => ($configChecksum) ? : null,
|
||||||
'activity_log_checksum' => $lastActivityLogChecksum
|
'activity' => $lastActivityLogChecksum
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
$result = [
|
$result = [
|
||||||
'active_configuration' => (object) $activeConfiguration,
|
'active_configuration' => (object) $activeConfiguration,
|
||||||
];
|
];
|
||||||
|
|
||||||
if ($configChecksumsListToVerify = $this->params->get('config_checksums')) {
|
if ($configChecksumsListToVerify = $this->params->get('configs')) {
|
||||||
$result['configuration'] = $status->getDeploymentStatusForConfigChecksums(
|
$result['configs'] = $status->getDeploymentStatusForConfigChecksums(
|
||||||
explode(',', $configChecksumsListToVerify),
|
explode(',', $configChecksumsListToVerify),
|
||||||
$configChecksum
|
$configChecksum
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($activityLogChecksumsListToVerify = $this->params->get('activity_log_checksums')) {
|
if ($activityLogChecksumsListToVerify = $this->params->get('activities')) {
|
||||||
$result['activity'] = $status->getDeploymentStatusForActivityLogChecksums(
|
$result['activities'] = $status->getDeploymentStatusForActivityLogChecksums(
|
||||||
explode(',', $activityLogChecksumsListToVerify),
|
explode(',', $activityLogChecksumsListToVerify),
|
||||||
$lastActivityLogChecksum
|
$lastActivityLogChecksum
|
||||||
);
|
);
|
||||||
|
|
|
@ -512,9 +512,9 @@ Content-Type: application/json
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"active_configuration": {
|
"active_configuration": {
|
||||||
"stage_name": "...",
|
"stage_name": "b191211d-05cb-4679-842b-c45170b96421",
|
||||||
"config_checksum": "...",
|
"config": "617b9cbad9e141cfc3f4cb636ec684bd60073be1",
|
||||||
"activity_log_checksum": "..."
|
"activity": "028b3a19ca7457f5fc9dbb5e4ea527eaf61616a2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
@ -534,14 +534,14 @@ Following an example of how to do it:
|
||||||
{
|
{
|
||||||
"active_configuration": {
|
"active_configuration": {
|
||||||
"stage_name": "b191211d-05cb-4679-842b-c45170b96421",
|
"stage_name": "b191211d-05cb-4679-842b-c45170b96421",
|
||||||
"config_checksum": "617b9cbad9e141cfc3f4cb636ec684bd60073be1",
|
"config": "617b9cbad9e141cfc3f4cb636ec684bd60073be1",
|
||||||
"activity_log_checksum": "028b3a19ca7457f5fc9dbb5e4ea527eaf61616a2"
|
"activity": "028b3a19ca7457f5fc9dbb5e4ea527eaf61616a2"
|
||||||
},
|
},
|
||||||
"configuration": {
|
"configs": {
|
||||||
"617b9cbad9e141cfc3f4cb636ec684bd60073be2": "deployed",
|
"617b9cbad9e141cfc3f4cb636ec684bd60073be2": "deployed",
|
||||||
"617b9cbad9e141cfc3f4cb636ec684bd60073be1": "active"
|
"617b9cbad9e141cfc3f4cb636ec684bd60073be1": "active"
|
||||||
},
|
},
|
||||||
"activity": {
|
"activities": {
|
||||||
"617b9cbad9e141cfc3f4cb636ec684bd60073be1": "undeployed",
|
"617b9cbad9e141cfc3f4cb636ec684bd60073be1": "undeployed",
|
||||||
"028b3a19ca7457f5fc9dbb5e4ea527eaf61616a2": "active"
|
"028b3a19ca7457f5fc9dbb5e4ea527eaf61616a2": "active"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue