{"size": 451, "ext": "js", "max_stars_repo_path": "assets/tosca/profiles/hot/1.0/js/functions/get_param.js", "max_stars_repo_name": "ganesh19881030/puccini", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "assets/tosca/profiles/hot/1.0/js/functions/get_param.js", "max_issues_repo_name": "ganesh19881030/puccini", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "assets/tosca/profiles/hot/1.0/js/functions/get_param.js", "max_forks_repo_name": "ganesh19881030/puccini", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.0555555556, "max_line_length": 81, "alphanum_fraction": 0.6962305987}

// [https://docs.openstack.org/heat/stein/template_guide/hot_spec.html#get_param]

clout.exec('tosca.lib.utils');

function evaluate(input) {
	if (arguments.length !== 1)
		throw 'must have 1 argument';
	if (!tosca.isTosca(clout))
		throw 'Clout is not TOSCA';
	var inputs = clout.properties.tosca.inputs;
	if (!(input in inputs))
		throw puccini.sprintf('parameter "%s" not found', input);
	var r = inputs[input];
	r = clout.coerce(r);
	return r;
}
