mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Do not use 'is' for string comparison
This commit is contained in:
parent
eba8d9ec00
commit
3222284235
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user