mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 19:31:26 -07:00
raise AttributeError
This commit is contained in:
parent
8dc7e9af64
commit
c59fd9b796
1 changed files with 1 additions and 0 deletions
|
@ -77,6 +77,7 @@ class StatusValue(namedtuple("Status", "value, is_pending")):
|
|||
def __getattr__(self, item):
|
||||
if item in ('is_%s' % status for status in ALL_STATUS):
|
||||
return self.value == getattr(self, item[3:].upper())
|
||||
raise AttributeError(item)
|
||||
|
||||
|
||||
class Status(object):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue