y-trudeau/resource-agents-prm — pull request #3 by jburnham (2012-11-02 00:12:27+00:00)
Title: Check the is_slave return code properly.

Updated my version of the resource agent and it caused the mysql service to stop. Doing a resource cleanup would cause it to retry starting it, but would eventually fail. Tracked it down to the conditional around the check_slave call in the mysql_monitor function. Simplified example below.

```shell
#!/bin/sh

VAR1="Master"
is_slave() {
return 1
}

if [ is_slave -o "$VAR1" = "Slave" ]; then
echo "Failed"
else
echo "Passed"
fi
```

$ sh ./test.sh
Failed