Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TODO: Add consistent debugging statement for the Project listing #15

Open
webpwnized opened this issue Mar 28, 2023 · 0 comments
Open
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@webpwnized
Copy link
Owner

webpwnized commented Mar 28, 2023

Some scripts will print the projects fetched if the DEBUG flag is passed. Most do not. Only for scripts that have the following code, but do not have the debugging statement yet...

if [[ $PROJECT_IDS == "" ]]; then

    declare PROJECT_IDS=$(gcloud projects list --format="flattened(PROJECT_ID)" | grep project_id | cut -d " " -f 2);

fi;

We want to add the following code just below:

if [[ $DEBUG == "True" ]]; then

	echo "Projects: $PROJECT_IDS";

	echo "";

fi;

A working example is cis-4.1.1-compute-instance-default-service-account.sh

@webpwnized webpwnized added enhancement New feature or request good first issue Good for newcomers labels Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant