X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=source%2Fsteps%2FReadNodeConfiguration.py;h=9c9f0df802ba4a0dc40e74b7349a43ac71ee7f45;hb=a0643cc47866e7fc3590909475ce8f79b8344597;hp=ec01d648f470331e6ad1b4df77acb2210d1a8f76;hpb=bfbe76b15ee1a6a74c31a8e9b1748542b722008b;p=bootmanager.git diff --git a/source/steps/ReadNodeConfiguration.py b/source/steps/ReadNodeConfiguration.py index ec01d64..9c9f0df 100644 --- a/source/steps/ReadNodeConfiguration.py +++ b/source/steps/ReadNodeConfiguration.py @@ -18,7 +18,6 @@ import BootServerRequest import BootAPI import notify_messages import UpdateRunLevelWithPLC -import ModelOptions # two possible names of the configuration files @@ -601,7 +600,7 @@ def __parse_configuration_file( vars, log, file_contents ): vars["INTERFACE_SETTINGS"]= INTERFACE_SETTINGS if (not hostname_resolve_ok and not vars['DISCONNECTED_OPERATION'] and - (vars['NODE_MODEL_OPTIONS'] & ModelOptions.NAT) == 0): + 'NAT_MODE' not in vars): log.write( "Hostname does not resolve correctly, will not continue.\n" ) if can_make_api_call: