Skip to content

Commit

Permalink
Merge pull request #123 from asottile/fix_print_error
Browse files Browse the repository at this point in the history
Fix some sys.stderr.writes that don't have their newlines
  • Loading branch information
solarkennedy committed Dec 10, 2015
2 parents a7ce1a8 + 9677959 commit db4955c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion paasta_tools/cli/cmds/local_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def docker_pull_image(docker_url):
DEVNULL = open(os.devnull, 'wb')
ret, output = _run('docker pull %s' % docker_url, stream=True, stdin=DEVNULL)
if ret != 0:
sys.stderr.write("\nPull failed. Are you authorized to run docker commands?")
sys.stderr.write("\nPull failed. Are you authorized to run docker commands?\n")
sys.exit(ret)


Expand Down
2 changes: 1 addition & 1 deletion paasta_tools/cli/fsm/questions.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def get_monitoring_stanza(auto, team):
print ", ".join(sorted(all_teams))
team = ask("Team responsible for this service?")
if not all_teams:
sys.stderr.write("Warning: No sensu teams are defined on disk, cannot perform validation on this team name")
sys.stderr.write("Warning: No sensu teams are defined on disk, cannot perform validation on this team name\n")
elif team not in all_teams:
print "I Don't See Your Team '%s' In The List Of Valid Teams:" % team
sys.exit(", ".join(sorted(all_teams)))
Expand Down

0 comments on commit db4955c

Please sign in to comment.