mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Fix config manager to show errors
If there were fatal bugs in this portion of config, they would never be displayed because config would fail to load and then every^U (Exageration... only half of every) other part of the code which depended on config to be loaded would fail before we ever got around to a section of code that would process UNABLE. Remove the try except from here so that we are able to debug this code
This commit is contained in:
@@ -180,12 +180,6 @@ class CLI(with_metaclass(ABCMeta, object)):
|
||||
ver = deprecated[1]['version']
|
||||
display.deprecated("%s option, %s %s" % (name, why, alt), version=ver)
|
||||
|
||||
# Errors with configuration entries
|
||||
if C.config.UNABLE:
|
||||
for unable in C.config.UNABLE:
|
||||
display.error("Unable to set correct type for configuration entry for %s: %s" % (unable, C.config.UNABLE[unable]))
|
||||
raise AnsibleError("Invalid configuration settings")
|
||||
|
||||
@staticmethod
|
||||
def split_vault_id(vault_id):
|
||||
# return (before_@, after_@)
|
||||
|
||||
Reference in New Issue
Block a user