Skip to content

Commit

Permalink
Merge remote-tracking branch 'yanglei-rh/bug2219366'
Browse files Browse the repository at this point in the history
Signed-off-by: Cleber Rosa <[email protected]>
  • Loading branch information
clebergnu committed Jul 7, 2023
2 parents 7c10487 + 00a7258 commit 40b75f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion avocado/utils/network/hosts.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Host:
"""

def __init__(self, host):
if isinstance(self, Host):
if type(self) == Host: # pylint: disable=C0123
raise TypeError("Host class should not be instantiated")
self.host = host

Expand Down

0 comments on commit 40b75f1

Please sign in to comment.