diff --git a/Cargo.lock b/Cargo.lock index 15655e7..512f04d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3431,7 +3431,7 @@ checksum = "222a222a5bfe1bba4a77b45ec488a741b3cb8872e5e499451fd7d0129c9c7c3d" [[package]] name = "tfcli" -version = "0.1.2" +version = "0.1.3" dependencies = [ "clap 4.2.7", "dirs 5.0.1", diff --git a/tfcli/Cargo.toml b/tfcli/Cargo.toml index e731e50..28176b7 100644 --- a/tfcli/Cargo.toml +++ b/tfcli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tfcli" -version = "0.1.2" +version = "0.1.3" edition = "2021" description = "Command-line client for managing trifid-api" license = "GPL-3.0-or-later" @@ -20,4 +20,4 @@ dirs = "5.0.1" qr2term = "0.3.1" ipnet = "2.7.2" serde_json = "1.0.96" -openssl-sys = { version = "0.9.83", features = ["vendored"] } \ No newline at end of file +openssl-sys = { version = "0.9.83", features = ["vendored"] } diff --git a/tfcli/src/host.rs b/tfcli/src/host.rs index d550f80..a4f6d90 100644 --- a/tfcli/src/host.rs +++ b/tfcli/src/host.rs @@ -77,7 +77,7 @@ pub async fn list_hosts(server: Url) -> Result<(), Box> { let token = format!("{} {}", session_token, auth_token); - let res = client.get(server.join("/v1/hosts")?).bearer_auth(token).send().await?; + let res = client.get(server.join("/v1/hosts?pageSize=5000")?).bearer_auth(token).send().await?; if res.status().is_success() { let resp: HostListResp = res.json().await?;