Add backup metadata fields

Freezer now is able to store more metadata about the backups including:
  - log_file
  - storage
  - mode
  - os_auth_version
  - proxy
  - compression
  - ssh_key
  - ssh_username
  - ssh_host
  - ssh_port

Change-Id: If9df17315c738a2c048113955d9ab21b760b6f36
This commit is contained in:
memo 2015-11-13 15:39:50 +00:00
parent 06003caa26
commit 01421da352
1 changed files with 3 additions and 1 deletions

View File

@ -105,7 +105,9 @@ class BackupJob(Job):
'container', 'container_segments',
'dry_run', 'hostname', 'path_to_backup', 'max_level',
'mode', 'backup_name', 'hostname',
'time_stamp']
'time_stamp', 'log_file', 'storage', 'mode',
'os_auth_version', 'proxy', 'compression', 'ssh_key',
'ssh_username', 'ssh_host', 'ssh_port']
for field_name in fields:
metadata[field_name] = self.conf.__dict__.get(field_name, '') or ''
return metadata