Skip to content

Commit

Permalink
Merge pull request #3 from argoproj-labs/fix-logging
Browse files Browse the repository at this point in the history
Only log when not dry run
  • Loading branch information
coreycaverly authored Jan 9, 2020
2 parents fe3d8a7 + fec7d81 commit 5d95f05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gordian/gordian.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ def apply_transformations(args, transformations):
if not args.dry_run:
try:
repo.repo.create_pull(args.pr_message, '', 'master', repo.branch_name)
logger.info(f'PR created: {args.pr_message}. Branch: {repo.branch_name}')
except GithubException as e:
print(f'PR already exists for {repo.branch_name}')
logger.info(f'PR created: {args.pr_message}. Branch: {repo.branch_name}')
logger.info(f'PR already exists for {repo.branch_name}')


def main():
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
setup_reqs = ["pytest-cov", "pytest-runner", "flake8"]
setuptools.setup(
name="gordian",
version="0.2.0",
version="0.2.1",
author="Intuit",
author_email="cg-sre@intuit.com",
description="A tool to search and replace YAML files in a Git repo",
Expand Down

0 comments on commit 5d95f05

Please sign in to comment.