aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rpc/system.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rpc/system.rs b/src/rpc/system.rs
index 81a47ff3..adfef6b6 100644
--- a/src/rpc/system.rs
+++ b/src/rpc/system.rs
@@ -514,7 +514,7 @@ impl System {
if let Err(e) = c
.publish_consul_service(
self.netapp.id,
- &self.local_status.load_full().hostname,
+ &self.local_status.load_full().hostname.as_deref().unwrap(),
rpc_public_addr,
)
.await
@@ -541,7 +541,7 @@ impl System {
if let Err(e) = publish_kubernetes_node(
k,
self.netapp.id,
- &self.local_status.load_full().hostname,
+ &self.local_status.load_full().hostname.as_deref().unwrap(),
rpc_public_addr,
)
.await