summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/modules/hostname.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/modules/hostname.rs b/src/modules/hostname.rs
index d71f733fa..4fc9a714d 100644
--- a/src/modules/hostname.rs
+++ b/src/modules/hostname.rs
@@ -30,11 +30,8 @@ pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> {
}
};
- let prefix = module.config_value_str("prefix").unwrap_or("").to_owned();
- let suffix = module.config_value_str("suffix").unwrap_or("").to_owned();
-
module.set_style(module_style);
- module.new_segment("hostname", &format!("{}{}{}", prefix, host, suffix));
+ module.new_segment("hostname", &format!("{}", host));
module.get_prefix().set_value("on ");
Some(module)