Fix setting required options for inventory plugins (#42049)

* Fix setting required options for inventory plugins

* call set_options for yaml and script plugin
This commit is contained in:
Sloane Hertel 2018-06-29 11:48:35 -04:00 committed by Brian Coca
parent aea396f04b
commit 44e5886385
3 changed files with 2 additions and 1 deletions

View file

@ -90,6 +90,7 @@ class InventoryModule(BaseFileInventoryPlugin):
''' parses the inventory file '''
super(InventoryModule, self).parse(inventory, loader, path)
self.set_options()
try:
data = self.loader.load_from_file(path, cache=False)