Skip to content

Commit

Permalink
Merge pull request xapi-project#2405 from johnelse/ca-182869
Browse files Browse the repository at this point in the history
CA-182869: Revert "CAR-1744: Escape the value strings passed between xe command and CLI server"
  • Loading branch information
johnelse committed Sep 10, 2015
2 parents 2cf46f2 + a5ed9a1 commit 0937312
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
9 changes: 4 additions & 5 deletions ocaml/xapi/cli_frontend.ml
Expand Up @@ -2799,11 +2799,10 @@ let rec parse_params_2 xs =
q::qs -> (convert_switch p,q)::parse_params_2 qs
| _ -> failwith (Printf.sprintf "Switch %s requires a parameter\n" p)
else
let param_name, rest = match String.split ~limit:2 '=' p with
| h1 :: h2 :: _ -> h1, Scanf.unescaped h2
| h1 :: _ -> h1, ""
| _ -> assert false in
(param_name,rest)::parse_params_2 ps
let list = String.split '=' p in
let param_name=List.hd list in
let rest = String.concat "=" (List.tl list) in
(param_name,rest)::parse_params_2 ps
end
| [] -> []

Expand Down
1 change: 0 additions & 1 deletion ocaml/xe-cli/newcli.ml
Expand Up @@ -187,7 +187,6 @@ let parse_args =
| arg :: args ->
match parse_eql arg with
| Some(k, v) when set_keyword(k,v) -> process_args args
| Some(k, v) -> (k ^ "=" ^ String.escaped v) :: process_args args
| _ -> arg :: process_args args in

fun args ->
Expand Down

0 comments on commit 0937312

Please sign in to comment.