mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #6327 from Anbcorp/bridge_fixes
Fix #6326: bridge.show returns none when no bridge is found
This commit is contained in:
commit
04914f6b1a
@ -74,7 +74,10 @@ def _linux_brshow(br=None):
|
||||
brs[brname]['interfaces'].append(vals[0])
|
||||
|
||||
if br:
|
||||
try:
|
||||
return brs[br]
|
||||
except KeyError, ke :
|
||||
return None
|
||||
return brs
|
||||
|
||||
|
||||
@ -151,7 +154,10 @@ def _netbsd_brshow(br=None):
|
||||
brs[brname]['stp'] = 'yes'
|
||||
|
||||
if br:
|
||||
try:
|
||||
return brs[br]
|
||||
except KeyError, ke :
|
||||
return None
|
||||
return brs
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user