fix error

pull/82547/head
Brian Coca 12 months ago
parent f7a51c0d8f
commit 8aa4681e50

@ -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…
Cancel
Save