I would prefer this fix, which is aligned with other multi-format support
response = HammerCLIForeman.record_to_common_format(JSON.parse(e.response))