mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Styling: deprecation
This commit is contained in:
parent
257d827c9e
commit
2e63faf257
1 changed files with 1 additions and 1 deletions
|
@ -267,7 +267,7 @@ class AristaLag(object):
|
|||
"""
|
||||
(rc, out, err) = self.run_command("netdev lag list")
|
||||
collection = json.loads(out)
|
||||
return collection.get('result').has_key(self.interface_id)
|
||||
return self.interface_id in collection.get('result')
|
||||
|
||||
|
||||
def main():
|
||||
|
|
Loading…
Reference in a new issue