Forum Discussion

MichaelW's avatar
4 years ago
Solved

AppliesTo Scripting Question

Hi I have spent some time trying to work this out but need. My environment consists of about 30 vCenter Servers (including their hypervisors). I am trying to create a dynamic group with a cus...
  • mnagel's avatar
    4 years ago

    It sounds like you are expecting a function to be able to take arguments, because "function".  I did as well many years ago when I wanted to create a single isClient function with the client name as an argument, but found after a very painful support ticket that they absolutely are not functions, just macros.

    You would need to write a separate version for each check.  In this case, you would have to add a new function like this and a new one for each version:

    system.virtualization=~"VMware" && auto.version_number =~"6\\.5\\.0*"