From: Frank Brehm Date: Thu, 18 Jan 2018 10:08:12 +0000 (+0100) Subject: Ensuring on data import that record/auth is not NULL. X-Git-Tag: 0.1.2~16 X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=33c9f3ebbeec101329312cfd3404df1c336b4882;p=pixelpark%2Fadmin-tools.git Ensuring on data import that record/auth is not NULL. --- diff --git a/pp_lib/import_pdnsdata.py b/pp_lib/import_pdnsdata.py index 2d44ebf..c517f8d 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.9' +__version__ = '0.8.10' LOG = logging.getLogger(__name__) # ============================================================================= @@ -874,7 +874,9 @@ class ImportPdnsdataApp(PpConfigApplication): result['disabled'] = 0 else: result['disabled'] = False - if result['auth'] is not None: + if result['auth'] is None: + result['auth'] = True + else: if result['auth']: result['auth'] = True else: