GoogleCloudPlatform / policy-library

A library of constraint templates and sample constraints for Constraint Framework tools
Apache License 2.0
223 stars 128 forks source link

YAML Syntax Fix for compute_block_ssh_keys policy #432

Closed KPRepos closed 1 year ago

KPRepos commented 1 year ago

The old syntax is failing validator with MAP errors, YAML syntax was updated to fix the gcloud error. The fix was tested and working as intended.

For Reference, Error with previous Code

Validating resources...done.                                                                                                                              
ERROR: gcloud crashed (KeyError): 'map'

If you would like to report this issue, please run the following command:
  gcloud feedback

To check gcloud for common problems, please run the following command:
  gcloud info --run-diagnostics