summaryrefslogtreecommitdiff
path: root/src/vyconf_client.ml
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2025-04-02 21:41:13 -0500
committerJohn Estabrook <jestabro@vyos.io>2025-04-04 12:36:50 -0500
commiteeb758f406f0cc27ab7863dc17eec00c24f2c0b6 (patch)
tree47ccceb8e72c4a02ceb282a0c5db7e06c93baaf8 /src/vyconf_client.ml
parentf389a749097d2a265d1ce1b757804af70a7199ba (diff)
downloadvyconf-eeb758f406f0cc27ab7863dc17eec00c24f2c0b6.tar.gz
vyconf-eeb758f406f0cc27ab7863dc17eec00c24f2c0b6.zip
T7302: add dry_run field and update branch
Diffstat (limited to 'src/vyconf_client.ml')
-rw-r--r--src/vyconf_client.ml4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vyconf_client.ml b/src/vyconf_client.ml
index 1f00f29..7380760 100644
--- a/src/vyconf_client.ml
+++ b/src/vyconf_client.ml
@@ -135,7 +135,9 @@ let delete client path =
| _ -> Error (Option.value resp.error ~default:"") |> Lwt.return
let commit client =
- let req = Commit {confirm=None; confirm_timeout=None; comment=None;} in
+ let req =
+ Commit {confirm=None; confirm_timeout=None; comment=None; dry_run=None}
+ in
let%lwt resp = do_request client req in
match resp.status with
| Success -> Ok (Option.value resp.output ~default:"") |> Lwt.return