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.
2 parents 04a58e5 + 6745398 commit b180ec2Copy full SHA for b180ec2
ocaml/xapi-cli-server/records.ml
@@ -1430,6 +1430,20 @@ let pool_record rpc session_id pool =
1430
; make_field ~name:"repository-proxy-username"
1431
~get:(fun () -> (x ()).API.pool_repository_proxy_username)
1432
()
1433
+ ; make_field ~name:"https-only"
1434
+ ~get:(fun () ->
1435
+ Client.Host.get_all ~rpc ~session_id
1436
+ |> List.map (fun h ->
1437
+ Client.Host.get_https_only ~rpc ~session_id ~self:h
1438
+ )
1439
+ |> List.fold_left ( && ) true
1440
+ |> string_of_bool
1441
1442
+ ~set:(fun s ->
1443
+ Client.Pool.set_https_only ~rpc ~session_id ~self:pool
1444
+ ~value:(Stdlib.bool_of_string s)
1445
1446
+ ()
1447
]
1448
}
1449
0 commit comments