I'm trying to return a list in one of my methods for interacting with vmware via pyvmomi.
active_list = self.vss.spec.policy.nicTeaming.nicOrder.activeNic
when I do return active_list
I get:
(str) [
'vmnic0',
'vmnic1'
]
Type:
type(active_list)
<class 'pyVmomi.VmomiSupport.str[]'>
Since I'm able to iterate over the active_list
as it is, shoud I be concerned about the (str)
prefix.
I was able to avoid the (str) [...]
prefix by
coping active_list
, new_list=list(active_list)
What is the best pythonic approach to this?