mirror of
https://github.com/jbowdre/vRealize.git
synced 2024-11-21 17:32:18 +00:00
Create getConfigValue
This commit is contained in:
parent
c500428048
commit
641cc352ce
1 changed files with 13 additions and 0 deletions
|
@ -0,0 +1,13 @@
|
||||||
|
/*
|
||||||
|
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;
|
Loading…
Reference in a new issue