Skip to content

Commit

Permalink
fix(rust): improve ockam relay list display when local state is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
k1nho authored and adrianbenavides committed Oct 3, 2023
1 parent eae2711 commit 7ead1d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion implementations/rust/ockam/ockam_command/src/relay/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use ockam_api::nodes::models::relay::RelayInfo;
use ockam_api::nodes::BackgroundNode;
use ockam_core::api::Request;

use crate::node::get_node_name;
use crate::node::{get_node_name, initialize_node_if_default};
use crate::terminal::OckamColor;
use crate::util::node_rpc;
use crate::{docs, CommandGlobalOpts};
Expand All @@ -35,6 +35,7 @@ pub struct ListCommand {

impl ListCommand {
pub fn run(self, options: CommandGlobalOpts) {
initialize_node_if_default(&options, &self.to);
node_rpc(run_impl, (options, self));
}
}
Expand Down

0 comments on commit 7ead1d0

Please sign in to comment.