add some helpfull methods

get_instance is much more simple to get details on an instance because its offen not possible to know what the dict layout is inorder to get to the child hostname.

 has_instance is nice to have when ensuring an instance is present or absent.
lint fix

lint fix
Merge pull request #16484 from steverweber/cloud_module

add some helpfull methods