Allowing puppet master info to submit on the fly.

* Moved machine_ip check to upper the sequence.