Skip to content

Commit

Permalink
fixup! Keep user multipath configuration upon upgrade
Browse files Browse the repository at this point in the history
're' key in restore_list takes a compiled regexp, not a string.

Signed-off-by: Yann Dirson <[email protected]>
  • Loading branch information
ydirson committed Dec 22, 2023
1 parent 08059cf commit f5530b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ def buildRestoreList(self):
self.restore_list += ['etc/nagios/nrpe.cfg', {'dir': 'etc/nrpe.d'}]

# Keep user multipath configuration
self.restore_list += [{'dir': 'etc/multipath/conf.d', 're': r'custom.*\.conf'}]
self.restore_list += [{'dir': 'etc/multipath/conf.d', 're': re.compile(r'custom.*\.conf')}]

completeUpgradeArgs = ['mounts', 'installation-to-overwrite', 'primary-disk', 'backup-partnum', 'logs-partnum', 'net-admin-interface', 'net-admin-bridge', 'net-admin-configuration']
def completeUpgrade(self, mounts, prev_install, target_disk, backup_partnum, logs_partnum, admin_iface, admin_bridge, admin_config):
Expand Down

0 comments on commit f5530b5

Please sign in to comment.