def stop_salt():
    """
    Stops salt master and minions.
    """
    with fabric_settings(warn_only=True):
        if env.host is not env.master_server.public_ip:
            sudo("service salt-master stop")
        sudo("service salt-minion stop")
dataset/ETHPy150Open rizumu/bootmachine/bootmachine/contrib/distros/rackspace_ubuntu_1210.py/stop_salt/operator `==` -> `is not`