Skip to content

Commit

Permalink
Fix #1406
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Sep 2, 2022
1 parent b8faad4 commit d9a0c4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IM/connectors/OpenNebula.py
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,7 @@ def create_snapshot(self, vm, disk_num, image_name, auto_delete, auth_data):

image_type = "" # Use the default one
one_ver = self.getONEVersion(auth_data)
if one_ver.startswith("5."):
if one_ver >= LooseVersion("5.0"):
success, res_info = server.one.vm.disksaveas(session_id, int(vm.id), disk_num,
image_name, image_type, -1)[0:2]
else:
Expand Down

0 comments on commit d9a0c4b

Please sign in to comment.