Use option dest rather than name in missing error
When we are missing a required option we should use option.dest rather then option.name so a user is presented with the correct value to use (otherwise we say auth-url is missing when auth_url is what we actually wanted, for example). Change-Id: Ie1d72f6969bfcebdf94619158eb94ccac3bc75ba
This commit is contained in:
parent
7d2d29aedd
commit
ce67a601b0
@ -89,6 +89,6 @@ class MissingRequiredOptions(OptionError):
|
||||
def __init__(self, options):
|
||||
self.options = options
|
||||
|
||||
names = ", ".join(o.name for o in options)
|
||||
names = ", ".join(o.dest for o in options)
|
||||
m = 'Auth plugin requires parameters which were not given: %s'
|
||||
super(MissingRequiredOptions, self).__init__(m % names)
|
||||
|
Loading…
Reference in New Issue
Block a user