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

correctly call funcs & set log to info #2167

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/runbooks/cloud9/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def cleanup_security_groups(security_group_ids, port) -> None:
}
],
)
logger.debug("Removed ingress rule from Security Group {}".format(sg_id))
logger.info("Removed ingress rule from Security Group {}".format(sg_id))
except botocore.exceptions.ClientError as e:
if e.response["Error"]["Code"] == "InvalidPermission.NotFound":
pass
Expand Down Expand Up @@ -78,7 +78,7 @@ def cleanup_postgres(**kwargs) -> None:
# Delete the environment variables for the Postgres CLI and clear the bash history
os.system("unset PGUSER")
os.system("unset PGPASSWORD")
os.system("cat /dev/null > ~/.bash_history && history -c")
os.system("cat /dev/null > ~/.bash_history && history -c && exit")


def setup_all(**kwargs) -> None:
Expand All @@ -105,8 +105,8 @@ def cleanup_all(**kwargs) -> None:
Returns:
None
"""
clean_redis()
clean_postgres()
cleanup_redis()
cleanup_postgres()


def get_redis_clusters() -> dict:
Expand Down
Loading