Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Add cloudscale.ch API inventory plugin #53517
What should the verify_file method check? I looked at similar plugins and what they seem to do is check that the file has a specific ending (like aws_ec2.yml). This looks like a silly restriction to me as either the user has enabled the plugin explicitly in his ansible configuration or if it's loaded by the auto plugin there is a line
There are currently no required parameters which don't have a default value which we could check.
its there because the user might have N plugins enabled and this allows for a very quick filter (avoiding reading the file itself) to skip/handle the source. Yes the auto plugin can take care of it, but it adds a layer of indirection and always requires reading the file.
Also its an easy way to avoid 'extra' errors since when we don't have a good filter on verify_file we are attempting to use multiple plugins and if they all fail, we have to return ALL errors, since we are unsure which one the user meant to use.