Skip to content
Snippets Groups Projects
Commit 5ff207ee authored by xiaohua guan's avatar xiaohua guan Committed by xiaohua guan
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 (Snapshot: Edit, Delete) (OpenStack)
parent 9436c547
Branches
Tags
4 merge requests!1316Issue #3310263: Release 4.5.0,!1260Issue #3307397: Release 4.4.0,!804Issue #3272190: Release 4.1.0,!780Issue #3270658 by Xiaohua Guan, yas: Support to run the operations from Cloud...
......@@ -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