-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update StorageConfig and ID generation logic
- Modified NewStorageConfig to use different ID generation functions for TelemetryMacMachineId and TelemetryMachineId, ensuring machineId uses a new format while others retain the old format. - Enhanced saveConfig to read the original configuration file, preserving all fields while updating telemetry-related fields. - Added lastModified and version fields to the configuration if they do not exist, improving configuration management. - Introduced a new generateMacMachineId function for consistent ID generation. These changes improve the flexibility and maintainability of the storage configuration handling.
- Loading branch information
Showing
1 changed file
with
59 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters