Skip to content

Commit

Permalink
Update the virt-who entity temporary to fix the read error (#775)
Browse files Browse the repository at this point in the history
* update the virt-who entity temporary to fix the read error
  • Loading branch information
hkx303 committed Dec 4, 2020
1 parent dcadf32 commit 0d1739a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions nailgun/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -7917,6 +7917,9 @@ def read(self, entity=None, attrs=None, ignore=None, params=None):
if not ignore:
ignore = set()
ignore.add('hypervisor_password')
# Related BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1902199
# This is temporary and need to be removed once related BZ is fixed.
ignore.add('proxy')
return super().read(entity, attrs, ignore, params)

def get_organization_configs(self, synchronous=True, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -1340,7 +1340,7 @@ def test_ignore_arg_v1(self):
(entities.User, {'password'}),
(entities.ScapContents, {'scap_file'}),
(entities.TailoringFile, {'scap_file'}),
(entities.VirtWhoConfig, {'hypervisor_password'}),
(entities.VirtWhoConfig, {'hypervisor_password', 'proxy'}),
(entities.VMWareComputeResource, {'password'}),
(entities.DiscoveredHost, {'ip', 'mac', 'root_pass', 'hostgroup'}),
):
Expand Down

0 comments on commit 0d1739a

Please sign in to comment.