mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +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")
|
(rc, out, err) = self.run_command("netdev lag list")
|
||||||
collection = json.loads(out)
|
collection = json.loads(out)
|
||||||
return collection.get('result').has_key(self.interface_id)
|
return self.interface_id in collection.get('result')
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|||||||
Reference in New Issue
Block a user