def cloud(tgt, provider=None):
 if (not isinstance(tgt, six.string_types)):
  return {}
 ret = {}
 opts = salt.config.cloud_config('/etc/salt/cloud')
 cloud_cache = __utils__['cloud.list_cache_nodes_full'](opts=opts, provider=provider)
 for (driver, providers) in cloud_cache.items():
  for (provider, servers) in providers.items():
   for (name, data) in servers.items():
    if fnmatch.fnmatch(name, tgt):
     ret[name] = data
     ret['name']['provider'] = provider
 return ret

def cloud ( tgt , provider = None ) : if ( not isinstance ( tgt , six . string_types ) ) : return { } ret = { } opts = salt . config . cloud_config ( '/etc/salt/cloud' ) cloud_cache = __utils__ [ 'cloud.list_cache_nodes_full' ] ( opts = opts , provider = provider ) for ( driver , providers ) in cloud_cache . items ( ) : for ( provider , servers ) in providers . items ( ) : for ( name , data ) in servers . items ( ) : if fnmatch . fnmatch ( name , tgt ) : ret [ name ] = data ret [ 'name' ] [ 'provider' ] = provider return ret
return cloud cache data for target .