Skip to content

Conversation

@jameshensmancitrix
Copy link
Contributor

@jameshensmancitrix jameshensmancitrix commented Oct 4, 2022

No description provided.

@robhoes
Copy link
Member

robhoes commented Oct 4, 2022

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.

; make_field ~name:"repository-proxy-username"
~get:(fun () -> (x ()).API.pool_repository_proxy_username)
()
; make_field ~name:"https_only"
Copy link
Member

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 _.

@jameshensmancitrix jameshensmancitrix force-pushed the private/jameshen/host_https_only branch from f7b1133 to cdb505c Compare October 4, 2022 10:03
Signed-off-by: jameshensmancitrix <james.hensman@citrix.com>
@jameshensmancitrix jameshensmancitrix force-pushed the private/jameshen/host_https_only branch from cdb505c to 6745398 Compare October 4, 2022 10:04
@jameshensmancitrix jameshensmancitrix merged commit b180ec2 into xapi-project:master Oct 4, 2022
Comment on lines +1436 to +1440
|> List.map (fun h ->
Client.Host.get_https_only ~rpc ~session_id ~self:h
)
|> List.fold_left ( && ) true
|> string_of_bool
Copy link
Member

@psafont psafont Oct 4, 2022

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

Suggested change
|> 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants