mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-02 00:33:09 +00:00
Styling: deprecation
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user