Skip to content
Snippets Groups Projects
Commit 653cbca4 authored by xiaohua guan's avatar xiaohua guan Committed by Yas Naoi
Browse files

Issue #3270658 by Xiaohua Guan, yas: Support to run the operations from Cloud...

Issue #3270658 by Xiaohua Guan, yas: Support to run the operations from Cloud Orchestrator master to workers (OpenStack snapshot) (Edit and Delete)
parent fd730c1f
Branches
Tags
6 merge requests!1759Issue #3356778: Release 5.1.1,!1679Issue #3349074: Fix the OpenStack Project create and edit form in SPA that "Member" cannot be saved due to a validation error,!1607Issue #3343582: Add the function to preview OpenStack stack in the SPA,!1032Issue #3284576: Release 5.0.0-alpha2,!832Issue #3274116: Refactor composer.json to use docomoinnovations/drupal-extension,!781Issue #3269930: Add a BDD test suite for checking no resources created by administrator
......@@ -1535,6 +1535,12 @@ class OpenStackService extends CloudServiceBase implements OpenStackServiceInter
* The snapshot update API response.
*/
public function updateSnapshot(array $params = []) {
if ($this->isWorkerResource()) {
$this->saveOperation(__FUNCTION__, [$params], 'updateSnapshots');
return ['SendToWorker' => TRUE];
}
$this->loadCredentials();
$body['snapshot'] = [
......@@ -1578,6 +1584,12 @@ class OpenStackService extends CloudServiceBase implements OpenStackServiceInter
* Succeeded or failed.
*/
public function deleteSnapshot(array $params = []) {
if ($this->isWorkerResource()) {
$this->saveOperation(__FUNCTION__, [$params], 'updateSnapshots');
return ['SendToWorker' => TRUE];
}
$this->loadCredentials();
$project_id = $this->credentials['project_id'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment