check ConfigParser object rather than config path list

fixes: #1763
This commit is contained in:
Yu Ming Zhu 2019-11-06 04:05:11 +00:00 committed by Mike McLean
parent eca76d58ed
commit 31a2670575

View file

@ -1776,7 +1776,7 @@ def read_config(profile_name, user_config=None):
result[name] = value
# Check if the specified profile had a config specified
if configs and not got_conf:
if config.sections() and not got_conf:
raise ConfigurationError("no configuration for profile name: %s" % profile_name)
# special handling for cert defaults