mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-25 23:29:59 +00:00
fix(control_plane): Fix incorrect file path of identity.toml in error message (#12826)
## Problem Control_plane shows incorrect file path when identity.toml file open fails. ## Summary of changes In the error context, when writing identity.toml, I changed it to use identity_file_path instead of config_file_path.
This commit is contained in:
@@ -233,8 +233,8 @@ impl PageServerNode {
|
|||||||
let mut identity_file = std::fs::OpenOptions::new()
|
let mut identity_file = std::fs::OpenOptions::new()
|
||||||
.create_new(true)
|
.create_new(true)
|
||||||
.write(true)
|
.write(true)
|
||||||
.open(identity_file_path)
|
.open(&identity_file_path)
|
||||||
.with_context(|| format!("open identity toml for write: {config_file_path:?}"))?;
|
.with_context(|| format!("open identity toml for write: {identity_file_path:?}"))?;
|
||||||
let identity_toml = self.pageserver_make_identity_toml(node_id);
|
let identity_toml = self.pageserver_make_identity_toml(node_id);
|
||||||
identity_file
|
identity_file
|
||||||
.write_all(identity_toml.to_string().as_bytes())
|
.write_all(identity_toml.to_string().as_bytes())
|
||||||
|
|||||||
Reference in New Issue
Block a user