 The rising was intended to be a swift coup d'état, but the government retained control of most of the country.Control over Spanish Morocco was all but certain.The plan was discovered in Morocco on 17 July, which prompted the conspirators to enact it immediately.