diff options
Diffstat (limited to 'xenserver/opt_xensource_libexec_InterfaceReconfigureVswitch.py')
-rw-r--r-- | xenserver/opt_xensource_libexec_InterfaceReconfigureVswitch.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xenserver/opt_xensource_libexec_InterfaceReconfigureVswitch.py b/xenserver/opt_xensource_libexec_InterfaceReconfigureVswitch.py index d70c24914..d9eda6adc 100644 --- a/xenserver/opt_xensource_libexec_InterfaceReconfigureVswitch.py +++ b/xenserver/opt_xensource_libexec_InterfaceReconfigureVswitch.py @@ -196,9 +196,9 @@ def datapath_configure_bond(pif,slaves): # override defaults with values from other-config whose keys # being with "bond-" oc = pifrec['other_config'] - overrides = filter(lambda (key,val): - key.startswith("bond-"), oc.items()) - overrides = map(lambda (key,val): (key[5:], val), overrides) + overrides = filter(lambda key_val: + key_val[0].startswith("bond-"), oc.items()) + overrides = map(lambda key_val: (key_val[0][5:], key_val[1]), overrides) bond_options.update(overrides) mode = None halgo = None |