Change elif to if _validate_config

Elif is not needed after a raise.
This commit is contained in:
2018-03-20 10:05:17 +01:00
parent 66e4229b9b
commit 678f72766e

View File

@@ -148,7 +148,7 @@ class PillarServer(BlinkerCompatibleEve):
if not server_name: if not server_name:
raise ConfigurationMissingError('SERVER_NAME configuration key is missing, should be a ' raise ConfigurationMissingError('SERVER_NAME configuration key is missing, should be a '
'FQDN with TLD') 'FQDN with TLD')
elif server_name != 'localhost' and '.' not in server_name: if server_name != 'localhost' and '.' not in server_name:
raise ConfigurationMissingError('SERVER_NAME should contain a FQDN with TLD') raise ConfigurationMissingError('SERVER_NAME should contain a FQDN with TLD')
def _load_flask_config(self): def _load_flask_config(self):