We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c01ae3 commit 5a8fea7Copy full SHA for 5a8fea7
ocaml/xapi/storage_access.ml
@@ -67,9 +67,9 @@ let find_content ~__context ?sr name =
67
68
let vdi_info_of_vdi_rec __context vdi_rec =
69
let content_id =
70
- if List.mem_assoc "content_id" vdi_rec.API.vDI_other_config
71
- then List.assoc "content_id" vdi_rec.API.vDI_other_config
72
- else vdi_rec.API.vDI_location (* PR-1255 *)
+ try
+ List.assoc "content_id" vdi_rec.API.vDI_other_config
+ with Not_found -> vdi_rec.API.vDI_location (* PR-1255 *)
73
in {
74
vdi = vdi_rec.API.vDI_location;
75
uuid = Some vdi_rec.API.vDI_uuid;
0 commit comments