Make this compatible with salt-0.17.1.