Skip to content

Commit f41356e

Browse files
committed
Fix bug with restoring snapshot for VM
1 parent 0ce26bb commit f41356e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All Notable changes to `php-lxd` will be documented in this file.
44

55
Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
66

7+
# Unrelesed
8+
9+
## Fixed
10+
Cant restore snapshot from VM
11+
712
# [0.23.0]
813

914
## Changed

src/Endpoint/Instance/Snapshots.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function restore($name, $snapshot, $wait = false)
105105
{
106106
$opts['restore'] = $snapshot;
107107

108-
$response = $this->client->containers->replace($name, $opts, $wait);
108+
$response = $this->client->instances->replace($name, $opts, $wait);
109109

110110
return $response;
111111
}

0 commit comments

Comments
 (0)