… in order to pick up any changes to the plugins that happened in the meantime. This is needed for ohai resource of Chef which calls all_plugins during :reload action.
1-) Remove the dmi related code from gce plugin since it's not used anymore. 2-) When the hints file doesn't exist, gce plugin will still try to find the metadata server and get required information from it.
…s/cloud.rb, lib/ohai/plugins/gce.rb, spec/unit/plugins/gce_spec.rb
- it assumes hostname is short and it may not be (e.g. smartos) - it uses the NIS domainname as the DNS domainname which is both unlikely to be used these days and not guaranteed to match anyway - its unlikely this worked correctly for just about anyone - in the event that the domainanme was blank you got a trailing dot which screwed everything up.
`Ohai::System#refresh_plugins` should be used instead. This option was incompatible with the implementation of dependency graph traversal in `Ohai::Runner`, and using it could lead to infinite loops when running a plugin with a simple dependency structure. The force option remains in the `require_plugin()` method to preserve version 6 API compatibility, but it is ignored.
…loping OHAI plugins in OHAI 6 but not anymore in OHAI 7. The way to get a similar functionality is to run: ohai -d . => get all the attributes by running the plugins in the current directory ohai -d . my_attribute_name => only to get the attribute you're developing