weiss/bcfg2-accounts — pull request #3 by stpierre (2012-07-25 18:26:03+00:00)
Title: Python 2.4 compat; graceful failure if probe hasn't run

The ternary operator was added in Python 2.5, so the template doesn't work on RHEL 5. This fixes that.

Additionally, if the probe hasn't run yet, the template crashes and burns. That includes running bcfg2-lint or bcfg2-test without the accounts probe added to probed.xml. This also fixes that and fails gracefully.