def _get_config_value(profile, config_name):
 config = __salt__['config.option'](profile)
 if (not config):
  raise CommandExecutionError("Authentication information could not be found for the '{0}' profile.".format(profile))
 config_value = config.get(config_name)
 if (config_value is None):
  raise CommandExecutionError("The '{0}' parameter was not found in the '{1}' profile.".format(config_name, profile))
 return config_value

def _get_config_value ( profile , config_name ) : config = __salt__ [ 'config.option' ] ( profile ) if ( not config ) : raise CommandExecutionError ( "Authentication information could not be found for the '{0}' profile." . format ( profile ) ) config_value = config . get ( config_name ) if ( config_value is None ) : raise CommandExecutionError ( "The '{0}' parameter was not found in the '{1}' profile." . format ( config_name , profile ) ) return config_value
helper function that returns a profiles configuration value based on the supplied configuration name .