Tags: array or hash?


#1

It looks like tags structure differs from context:

when 'miq_provision’
prov = $evm.root[‘miq_provision’]
tags = prov.get_tags => Hash
when 'vm’
vmname = $evm.root[‘vm’]
tags = vmname.tags => Array

when 'service’
service = $evm.root[‘service’]
tags = service.tags => Array

is there a reason for that?

Should i convert array to hash to have homogeneous and generic code in methods?