[go: nahoru, domu]

Skip to content

Commit

Permalink
fix: YAML Syntax Fix for compute_block_ssh_keys policy (#432)
Browse files Browse the repository at this point in the history
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
```
  • Loading branch information
KPRepos committed Jan 5, 2023
1 parent 60e457c commit c3382cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion samples/compute_block_ssh_keys.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ metadata:
spec:
severity: high
match:
ancestries: ["organization/*"]
ancestries:
- "organizations/**"
parameters: {}

0 comments on commit c3382cb

Please sign in to comment.