Added flag to get the return code from puppet apply