mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-10-26 08:42:29 +01:00 
			
		
		
		
	Proxmox: fix restore snapshot with memory (#11450)
This commit is contained in:
		
							parent
							
								
									03da8cbd3e
								
							
						
					
					
						commit
						93d6ff3a7d
					
				| @ -334,7 +334,11 @@ restore_snapshot() { | |||||||
| 
 | 
 | ||||||
|     execute_and_wait POST "/nodes/${node}/qemu/${vmid}/snapshot/${snap_name}/rollback" |     execute_and_wait POST "/nodes/${node}/qemu/${vmid}/snapshot/${snap_name}/rollback" | ||||||
| 
 | 
 | ||||||
|     execute_and_wait POST "/nodes/${node}/qemu/${vmid}/status/start" |     status_response=$(call_proxmox_api GET "/nodes/${node}/qemu/${vmid}/status/current") | ||||||
|  |     vm_status=$(echo "$status_response" | jq -r '.data.status') | ||||||
|  |     if [ "$vm_status" = "stopped" ];then | ||||||
|  |         execute_and_wait POST "/nodes/${node}/qemu/${vmid}/status/start" | ||||||
|  |     fi | ||||||
| 
 | 
 | ||||||
|     echo '{"status": "success", "message": "Instance Snapshot restored"}' |     echo '{"status": "success", "message": "Instance Snapshot restored"}' | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user