From e2ef5d9bffe0b82dd54bd34637ba33ad5a261472 Mon Sep 17 00:00:00 2001 From: k1nho Date: Sat, 30 Sep 2023 12:24:53 -0400 Subject: [PATCH] fix(rust): improve ockam relay list display when local state is empty --- implementations/rust/ockam/ockam_command/src/relay/list.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/implementations/rust/ockam/ockam_command/src/relay/list.rs b/implementations/rust/ockam/ockam_command/src/relay/list.rs index 68c75939d77..658ea977a7d 100644 --- a/implementations/rust/ockam/ockam_command/src/relay/list.rs +++ b/implementations/rust/ockam/ockam_command/src/relay/list.rs @@ -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}; @@ -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)); } }