pysphere
pysphere copied to clipboard
PerfCompositeMetric instance has attribute 'entity' and ChildEntity
I could see an attribute check in method "get_entity_statistic" of
vi_performance_manager.py
if composite:
if hasattr(query, "Entity"):
stats.extend(query.Entity.Value)
if hasattr(query, "ChildEntity"):
for item in query.ChildEntity:
stats.extend(item.Value)
else:
if hasattr(query[0], "Value"):
stats = query[0].Value
When will happen this situation ???
AttributeError: PerfCompositeMetric instance has no attribute 'entity'
AttributeError: PerfCompositeMetric instance has no attribute 'ChildEntity'
Is this the only way to do it.
Why can't we check value of attibutes (currentSupported or summarySupported) of
PerfProviderSummary and proceed.
Original issue reported on code.google.com by [email protected]
on 26 Nov 2012 at 8:30
I want to create a Host which gives following errors. How create it ??
AttributeError: PerfCompositeMetric instance has no attribute 'entity'
IF there is no VMs, I will get this error.
AttributeError: PerfCompositeMetric instance has no attribute 'ChildEntity'
Original comment by [email protected]
on 26 Nov 2012 at 9:56