diff --git a/IM/connectors/OpenNebula.py b/IM/connectors/OpenNebula.py index 9b996117d..83ce0caa6 100644 --- a/IM/connectors/OpenNebula.py +++ b/IM/connectors/OpenNebula.py @@ -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: