Skip to content

Commit

Permalink
adding get_instance_settings inside cloud (#514)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuajerin authored Jan 30, 2024
1 parent 3e43523 commit 1f51d55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tembo-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
workspace = { members = ["temboclient", "tembodataclient"] }
[package]
name = "tembo-cli"
version = "0.15.1"
version = "0.15.2"
edition = "2021"
authors = ["Tembo.io"]
description = "The CLI for Tembo"
Expand Down
2 changes: 1 addition & 1 deletion tembo-cli/src/cmd/logs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ fn format_log_entry(log_entry: &IndividualLogEntry) -> String {
}

pub fn execute() -> Result<()> {
let instance_settings = get_instance_settings(None, None)?;
let env = match get_current_context() {
Ok(env) => env,
Err(e) => return Err(e), // early return in case of error
};

if env.target == Target::Docker.to_string() {
let instance_settings = get_instance_settings(None, None)?;
for (instance_name, _settings) in instance_settings {
docker_logs(&_settings.instance_name)?;
}
Expand Down

0 comments on commit 1f51d55

Please sign in to comment.