From 0059062083395fd58fc1c3a10476e74c294c4db9 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Thu, 11 Jan 2018 16:41:46 +0100 Subject: [PATCH] Bugfixing pp_lib/import_pdnsdata.py --- pp_lib/import_pdnsdata.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pp_lib/import_pdnsdata.py b/pp_lib/import_pdnsdata.py index ce34de1..e259daf 100644 --- a/pp_lib/import_pdnsdata.py +++ b/pp_lib/import_pdnsdata.py @@ -31,7 +31,7 @@ from .common import pp, to_bool from .cfg_app import PpCfgAppError, PpConfigApplication -__version__ = '0.8.3' +__version__ = '0.8.4' LOG = logging.getLogger(__name__) # ============================================================================= @@ -201,7 +201,7 @@ class ImportPdnsdataApp(PpConfigApplication): if 'user' in section: user = section['user'].lower().strip() - if not schema: + if not user: LOG.error('Invalid source database user {!r} in configuration section {!r} found.'.format( section['user'], section_name)) self.config_has_errors = True @@ -274,7 +274,7 @@ class ImportPdnsdataApp(PpConfigApplication): if 'user' in section: user = section['user'].lower().strip() - if not schema: + if not user: LOG.error('Invalid target database user {!r} in configuration section {!r} found.'.format( section['user'], section_name)) self.config_has_errors = True -- 2.39.5