Do not use 'is' for string comparison

This commit is contained in:
Colton Myers 2015-01-28 13:08:40 -07:00
parent eba8d9ec00
commit 3222284235

View File

@ -1532,7 +1532,7 @@ def build_interface(iface, iface_type, enabled, **settings):
if not __salt__['pkg.version']('ppp'):
inst = __salt__['pkg.install']('ppp')
elif iface_type is 'bond':
elif iface_type == 'bond':
if 'slaves' not in settings:
msg = 'slaves is a required setting for bond interfaces'
log.error(msg)