]> git.proxmox.com Git - proxmox-backup.git/commitdiff
proxmox-rrd: use correct directory options in create_rrdb_dir
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 7 Oct 2021 06:50:50 +0000 (08:50 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 7 Oct 2021 06:50:50 +0000 (08:50 +0200)
proxmox-rrd/src/cache.rs

index 08e91c9c01794161de8b86fc6a9e3fe053172dd2..1084a037c959a7e4699fced98d8fd4b3efdd13ee 100644 (file)
@@ -41,7 +41,7 @@ impl RRDCache {
     /// Create rrdd stat dir with correct permission
     pub fn create_rrdb_dir(&self) -> Result<(), Error> {
 
-        create_path(&self.basedir, Some(self.dir_options.clone()), Some(self.file_options.clone()))
+        create_path(&self.basedir, Some(self.dir_options.clone()), Some(self.dir_options.clone()))
             .map_err(|err: Error| format_err!("unable to create rrdb stat dir - {}", err))?;
 
         Ok(())