From 4fd741f0a03ec0f1c61526a245348dd9e8d7859e Mon Sep 17 00:00:00 2001 From: Gabriel Bassett Date: Thu, 29 Nov 2018 16:18:17 -0600 Subject: [PATCH] fix for hosting types that don't change in convert_1.3.2_to_1.3.3 --- bin/convert_1.3.2_to_1.3.3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/convert_1.3.2_to_1.3.3.py b/bin/convert_1.3.2_to_1.3.3.py index ad67ed27..fa60d238 100644 --- a/bin/convert_1.3.2_to_1.3.3.py +++ b/bin/convert_1.3.2_to_1.3.3.py @@ -231,7 +231,7 @@ def main(cfg): if 'asset' in incident: if 'hosting' in incident['asset']: - incident['asset']['hosting'] = [gov_hosting_lookup[incident['asset']['hosting']]] + incident['asset']['hosting'] = [gov_hosting_lookup.get(incident['asset']['hosting'], incident['asset']['hosting'])] if 'ownership' in incident['asset']: incident['asset']['ownership'] = [incident['asset']['ownership']] if 'management' in incident['asset']: