def cloud_providers_config(path, env_var='SALT_CLOUD_PROVIDERS_CONFIG', defaults=None):
 if (defaults is None):
  defaults = PROVIDER_CONFIG_DEFAULTS
 overrides = salt.config.load_config(path, env_var, os.path.join(salt.syspaths.CONFIG_DIR, 'cloud.providers'))
 default_include = overrides.get('default_include', defaults['default_include'])
 include = overrides.get('include', [])
 overrides.update(salt.config.include_config(default_include, path, verbose=False))
 overrides.update(salt.config.include_config(include, path, verbose=True))
 return apply_cloud_providers_config(overrides, defaults)

def cloud_providers_config ( path , env_var = 'SALT_CLOUD_PROVIDERS_CONFIG' , defaults = None ) : if ( defaults is None ) : defaults = PROVIDER_CONFIG_DEFAULTS overrides = salt . config . load_config ( path , env_var , os . path . join ( salt . syspaths . CONFIG_DIR , 'cloud.providers' ) ) default_include = overrides . get ( 'default_include' , defaults [ 'default_include' ] ) include = overrides . get ( 'include' , [ ] ) overrides . update ( salt . config . include_config ( default_include , path , verbose = False ) ) overrides . update ( salt . config . include_config ( include , path , verbose = True ) ) return apply_cloud_providers_config ( overrides , defaults )
read in the salt cloud providers configuration file .