mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-27 10:40:22 -07:00
Update ovirt_vnic_profile.py (#56518)
##### SUMMARY qos is not defined when port_mirroring is enabled, a NoneType is returned for entity.qos in this case getattr is safer to use than using a direct call to entity.qos.name ##### ISSUE TYPE - Bugfix Pull Request +label: docsite_pr
This commit is contained in:
parent
730456b402
commit
7e997fdca2
1 changed files with 1 additions and 1 deletions
|
@ -217,7 +217,7 @@ class EntityVnicPorfileModule(BaseModule):
|
|||
equal(self.param('pass_through'), entity.pass_through.mode.name) and
|
||||
equal(self.param('description'), entity.description) and
|
||||
equal(self.param('network_filter'), getattr(entity.network_filter, 'name', None)) and
|
||||
equal(self.param('qos'), entity.qos.name) and
|
||||
equal(self.param('qos'), getattr(entity.qos, 'name', None)) and
|
||||
equal(self.param('port_mirroring'), getattr(entity, 'port_mirroring', None))
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue