1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

pep8: deprecation

This commit is contained in:
Michael DeHaan 2013-06-30 18:51:47 -04:00
parent 899ea4de82
commit 4827d1451e

View file

@ -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():