Skip to content

Commit

Permalink
Merge pull request xapi-project#13 from mseri/master
Browse files Browse the repository at this point in the history
inventory: preserve old ~limit:2 semantic
  • Loading branch information
mseri authored Jan 9, 2018
2 parents ed9ceb2 + 28a120f commit 6c2270c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/inventory.ml
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ let strip_quotes v =
else v

let parse_inventory_entry line =
match Astring.String.cuts ~empty:false ~sep:"=" line with
| [k; v] ->
match Astring.String.cut ~sep:"=" line with
| Some(k, v) ->
(* trim whitespace *)
Some (k, v |> strip_quotes |> String.trim)
| _ -> None
| None -> None

let string_of_table h =
let lines = List.fold_left (fun acc (k, v) ->
Expand Down

0 comments on commit 6c2270c

Please # to comment.