diff options
| author | tv <tv@krebsco.de> | 2026-10-26 23:21:01 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-26 23:21:01 +0100 |
| commit | 813f9c57d227a686c6fb08137a2b6b26e9986ef4 (patch) | |
| tree | 774e8fb9f86d608fe78f40981a6abf6f2ccdd032 /src/config/import.rs | |
| parent | 932efcc8db81eda6f1d91fda74d002c0aecd6629 (diff) | |
show interpolated values in GET /admin/config
Diffstat (limited to 'src/config/import.rs')
| -rw-r--r-- | src/config/import.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/config/import.rs b/src/config/import.rs index a5b2a63..9f315f3 100644 --- a/src/config/import.rs +++ b/src/config/import.rs @@ -185,6 +185,12 @@ impl Importer { } } + /// Whether this is text with placeholders (`interpolated`) rather than an importer + /// of the whole value: its result is shown, the importers' are not. + pub(crate) fn is_interpolation(&self) -> bool { + matches!(self.source, Source::Template { .. }) + } + /// The imported content: text, or JSON. pub(crate) fn fetch(&self) -> Result<Imported> { let text = match &self.source { |
