-
Notifications
You must be signed in to change notification settings - Fork 293
CP-40752 Added CLI functionality for pool level setter and getter (https_only) #4806
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CP-40752 Added CLI functionality for pool level setter and getter (https_only) #4806
Conversation
|
I think you need to rebase, because this includes a commit for "CP-40751 Added and implemented Pool.set_https_only", which is already in. |
ocaml/xapi-cli-server/records.ml
Outdated
| ; make_field ~name:"repository-proxy-username" | ||
| ~get:(fun () -> (x ()).API.pool_repository_proxy_username) | ||
| () | ||
| ; make_field ~name:"https_only" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the CLI, we use - rather than _.
f7b1133 to
cdb505c
Compare
Signed-off-by: jameshensmancitrix <james.hensman@citrix.com>
cdb505c to
6745398
Compare
| |> List.map (fun h -> | ||
| Client.Host.get_https_only ~rpc ~session_id ~self:h | ||
| ) | ||
| |> List.fold_left ( && ) true | ||
| |> string_of_bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The standard library provides a handy function for this: https://v2.ocaml.org/api/List.html#val__for_all
| |> List.map (fun h -> | |
| Client.Host.get_https_only ~rpc ~session_id ~self:h | |
| ) | |
| |> List.fold_left ( && ) true | |
| |> string_of_bool | |
| |> List.for_all (fun h -> | |
| Client.Host.get_https_only ~rpc ~session_id ~self:h | |
| ) | |
| |> string_of_bool |
No description provided.