BackupGGCode / roster-dns-management

DNS Management system.
0 stars 2 forks source link

TreeExporter stores (somtimes) incorrect tar file name #369

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
TreeExporter contains an instance variable, self.tar_file_name, that is never 
used, and only set once in ExportAllBindTrees. It is not actually used in 
writing any tar files to disk, because config_lib handles that in the 
TarDnsTree method. By the time TarDnsTree is run, the timestamp on 
TreeExporter's self.tar_file_name can be a second (or more) behind.

I suggest we remove TreeExporter's self.tar_file_name altogether. Any and all 
references to it should be changed to a call to 
config_lib.FindNewestDnsTreeFilename() which will return the correct value of 
the file written to disk.

Original issue reported on code.google.com by J.S.Pavlick@gmail.com on 7 May 2013 at 2:54

GoogleCodeExporter commented 9 years ago

Original comment by J.S.Pavlick@gmail.com on 16 Aug 2013 at 3:40