mirror of
https://github.com/ansible/ansible.git
synced 2026-05-28 04:32:20 -04:00
fix error
This commit is contained in:
parent
f7a51c0d8f
commit
8aa4681e50
1 changed files with 1 additions and 1 deletions
|
|
@ -110,7 +110,7 @@ class AnsiblePlugin(ABC):
|
|||
if hasattr(pc, option):
|
||||
return getattr(pc, option)
|
||||
|
||||
raise KeyError("The %s plugin '%s' does not support any of these options: %s" % (self.plugin_type, self._load_name, ', '.join(options))
|
||||
raise KeyError(f"The {self.plugin_type} plugin '{self.ansible_name}' does not support any of these options: {', '.join(options)}")
|
||||
|
||||
def set_option(self, option, value):
|
||||
self._options[option] = C.config.get_config_value(option, plugin_type=self.plugin_type, plugin_name=self._load_name, direct={option: value})
|
||||
|
|
|
|||
Loading…
Reference in a new issue