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
4827d1451e
commit
c7eb68e043
1 changed files with 1 additions and 1 deletions
|
@ -228,7 +228,7 @@ class AristaVlan(object):
|
||||||
"""
|
"""
|
||||||
(rc, out, err) = self.run_command("netdev vlan list")
|
(rc, out, err) = self.run_command("netdev vlan list")
|
||||||
collection = json.loads(out)
|
collection = json.loads(out)
|
||||||
return collection.get('result').has_key(str(self.vlan_id))
|
return str(self.vlan_id) in collection.get('result')
|
||||||
|
|
||||||
def get(self):
|
def get(self):
|
||||||
""" This method will return a dictionary with the attributes of the
|
""" This method will return a dictionary with the attributes of the
|
||||||
|
|
Loading…
Reference in a new issue