Jython Script Reading and Writing Boolean Values
I am trying to copy the Node is Virtual value to a attribute in another CI. When I read the Value it comes in as True but when I diplay it or try to write it out it shows up as False every time.
Here is an example of my code. (Code commented out because it is not working)
Comp_Virt = Boolean.parseBoolean(Framework.getParameter('CompVirt'))
Data_Virt = Boolean.parseBoolean(Framework.getParameter('DataVirt'))
logger.info('DataVirt = %s and CompVirt = %s ' % (Data_Virt,Comp_Virt))
# if Comp_Virt:
# logger.info('Comp Virt is true')
# hostOsh.setBoolAttribute('cvs_virtual', True)
See attached for the Debeg Log.