diff --git a/src/api2/types/tape/media_pool.rs b/src/api2/types/tape/media_pool.rs index 328f3591..aa6da0cf 100644 --- a/src/api2/types/tape/media_pool.rs +++ b/src/api2/types/tape/media_pool.rs @@ -145,7 +145,7 @@ pub struct MediaPoolConfig { /// Media retention policy #[serde(skip_serializing_if="Option::is_none")] pub retention: Option, - /// Media set naming template (default "%id%") + /// Media set naming template (default "%c") /// /// The template is UTF8 text, and can include strftime time /// format specifications. diff --git a/src/tape/inventory.rs b/src/tape/inventory.rs index cc3872fd..e86cd66a 100644 --- a/src/tape/inventory.rs +++ b/src/tape/inventory.rs @@ -522,7 +522,7 @@ impl Inventory { ) -> Result { if let Some(ctime) = self.media_set_start_time(media_set_uuid) { - let mut template = template.unwrap_or(String::from("%id%")); + let mut template = template.unwrap_or(String::from("%c")); template = template.replace("%id%", &media_set_uuid.to_string()); proxmox::tools::time::strftime_local(&template, ctime) } else {