Skip to content
Snippets Groups Projects

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

Merged Issue #3270658 by Xiaohua Guan, yas: Support to run the operations from Cloud...
Merged xiaohua guan requested to merge issue/cloud-3270658:3270658-support-to-run into 5.x
1 file
+ 12
0
Compare changes
  • Side-by-side
  • Inline
@@ -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'];
Loading