Skip to content

Commit

Permalink
Fix for backup creating when no previous configuration found.
Browse files Browse the repository at this point in the history
  • Loading branch information
imbeacon committed Feb 9, 2024
1 parent 4629ed1 commit 776c570
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -701,4 +701,7 @@ def create_configuration_file_backup(self, config_data, config_file_name):

def _create_connectors_backup(self):
for connector in self.connectors_configuration:
self.create_configuration_file_backup(connector['configurationJson'], connector['configuration'])
if connector.get('configurationJson'):
self.create_configuration_file_backup(connector['configurationJson'], connector['configuration'])
else:
LOG.debug(f"Configuration for {connector['name']} connector is not found, backup wasn't created")

0 comments on commit 776c570

Please sign in to comment.