fix error code at the wrong place
Merge pull request #799 from nicolasochem/fix_rpm_build

Fix rpm build
do not attempt to get central agent jid when it is deactivated
Merge pull request #801 from nicolasochem/fix_error_centralagent_disabled

do not attempt to get central agent jid when it is deactivated

Reviewed