mirror of
https://github.com/jbowdre/vRealize.git
synced 2024-12-22 21:12:18 +00:00
13 lines
516 B
Text
13 lines
516 B
Text
/*
|
|
JavaScript: getConfigValue action
|
|
Retrieves the configuration element attribute value for a given key.
|
|
Inputs: path (string), configurationName (string), variableName (string)
|
|
Return type: string
|
|
*/
|
|
|
|
var configElement = null;
|
|
for each (configElement in Server.getConfigurationElementCategoryWithPath(path).configurationElements) {
|
|
if (configElement.name.indexOf(configurationName) === 0) { break; };
|
|
}
|
|
var attribValue = configElement.getAttributeWithKey(variableName).value;
|
|
return attribValue;
|