mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
pep8: deprecation
This commit is contained in:
@@ -278,7 +278,7 @@ class AristaL2Interface(object):
|
||||
"""
|
||||
(rc, out, err) = self.run_command("netdev l2interface 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