ingox opened a new pull request, #536: URL: https://github.com/apache/cloudstack-documentation/pull/536
Documentation has been extended with examples and details about the order of the tags. The following tests have been made: | no | tag | js rule | tag (host2) | js rule (host2) | host tag on compute offering | result | |----|------|---------|-----------------------------------------------------|------------------|------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | 1 | slow | no | tags[0] == slow && tags[1] == fast | yes | fast | Error<br>Unable to execute script [ tags = 'slow,fast'; tags = tags ? tags.split(',') : [];tags[0] == slow \|\| tags[1] == fast] due to [javax.script.ScriptException: ReferenceError: "slow" is not defined in <eval> at line number 1] | | 2 | slow | no | tags[0] == slow \|\| tags[1] == fast | yes | fast | Error<br>Unable to execute script [ tags = 'slow,fast'; tags = tags ? tags.split(',') : [];tags[0] == slow \|\| tags[1] == fast] due to [javax.script.ScriptException: ReferenceError: "slow" is not defined in <eval> at line number 1] | | 3 | slow | no | tags[0] == "slow" && tags[1] == "fast" | yes | fast | Error<br>No suitable host found. | | 4 | slow | no | tags[0] == "slow" \|\| tags[1] == "fast" | yes | fast | Error<br>No suitable host found. | | 5 | slow | no | tags[0] == "slow" \|\| tags[0] == "fast" | yes | fast | Success | | 6 | slow | no | tags[0] == "slow" \|\| tags[1] == "fast" | yes | slow,fast | Success | | 7 | slow | no | tags[0] == "slow" \|\| tags[0] == "fast" | yes | fast,slow | Success | | 8 | slow | no | tags[0] == "slow" \|\| tags[1] == "fast" | yes | fast,slow | Error<br>No suitable host found. | | 9 | slow | no | tags.indexOf('slow') >= 0 \|\| tags.indexOf('fast') >= 0 | yes | fast | Success | -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@cloudstack.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org