Commit 65249fb4 by Chif Gergő

'Serialize' flavor

parent f34faabf
Pipeline #1071 passed with stage
in 1 minute 30 seconds
......@@ -265,8 +265,14 @@ class Instance(BaseMachineDescriptor):
self.save()
def resize(self, flavor):
flav = {
"name": flavor.name,
"ram": flavor.ram,
"vcpus": flavor.vcpus,
"disk": flavor.initial_disk
}
try:
interface.resize_vm(self.remote_id, flavor)
interface.resize_vm(self.remote_id, flav)
self.flavor = flavor
self.save()
except Exception as e:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment