Split debian bonding options on dash instead of underscore

Fixes #23904
This commit is contained in:
Cory Wright 2015-05-19 10:31:58 -04:00
parent c73bf38927
commit c06f8cf831

View file

@ -597,7 +597,7 @@ def _parse_interfaces(interface_files=None):
iface_dict['bonding'][opt] = valuestr
elif attr.startswith('bridge'):
opt = attr.split('_', 1)[1]
opt = attr.split('-', 1)[1]
if 'bridging' not in iface_dict:
iface_dict['bridging'] = salt.utils.odict.OrderedDict()
iface_dict['bridging'][opt] = valuestr