CKV_GCP_39 - remove .get function
@@ -23,7 +23,7 @@ class GoogleComputeShieldedVM(BaseResourceCheck):
not conf['shielded_instance_config'][0].get('enable_vtpm')[0]:
return CheckResult.FAILED
if 'enable_integrity_monitoring' in conf['shielded_instance_config'][0] and \
- not conf['shielded_instance_config'][0].get('enable_integrity_monitoring')[0]:
+ not conf['shielded_instance_config'][0]['enable_integrity_monitoring'][0]:
return CheckResult.FAILED
return CheckResult.PASSED
return CheckResult.FAILED
