mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 19:31:26 -07:00
More isinstance fixes (#3405)
* More isinstance fixes * Use double types
This commit is contained in:
parent
32fef233f2
commit
b3795322e9
3 changed files with 7 additions and 7 deletions
|
@ -194,7 +194,7 @@ class KazooCommandProxy():
|
|||
for i in dir(zstat):
|
||||
if not i.startswith('_'):
|
||||
attr = getattr(zstat, i)
|
||||
if type(attr) in (int, str):
|
||||
if isinstance(attr, (int, str)):
|
||||
stat_dict[i] = attr
|
||||
result = True, {'msg': 'The node was retrieved.', 'znode': path, 'value': value,
|
||||
'stat': stat_dict}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue