Skip to content
Browse files

Pep8 cleanups

  • Loading branch information...
1 parent d344538 commit cca24d9b2f20f5baaa7cb670c27785e91554224c dhubbard committed Jul 24, 2013
Showing with 7 additions and 4 deletions.
  1. +7 −4 sshmap/sshmap
View
11 sshmap/sshmap
@@ -52,9 +52,10 @@ if __name__ == "__main__":
help = "Script to process the output of each host. The hostname will be passed as the first argument and the stdin/stderr from the host will be passed as stdin/stderr of the script")
parser.add_option("--no_status", dest = "show_status", default = True, action = "store_false",
help = "Don't show a status count as the command progresses")
- parser.add_option("--sudo", dest = "sudo", default = False, action = "store_true",
+ parser.add_option("--sudo", dest="sudo", default=False,
+ action="store_true",
help = "Use sudo to run the command as root")
- parser.add_option("--password", dest="password", default=None,
+ parser.add_option("--password", dest="password", default=False,
action="store_true", help="Prompt for a password")
(options, args) = parser.parse_args()
@@ -121,8 +122,10 @@ if __name__ == "__main__":
print ','.join(hostlists.compress(aggregate_hosts[md5]))
print "-" * (int(columns)-2)
stdout, stderr = collapsed_output[md5]
- if len(stdout): print ''.join(stdout)
- if len(stderr): print >> sys.stderr, '\n'.join(stderr)
+ if len(stdout):
+ print ''.join(stdout)
+ if len(stderr):
+ print >> sys.stderr, '\n'.join(stderr)
if options.summarize_failed and 'failures' in results.parm.keys() and \
len(results.parm['failures']):
print(

0 comments on commit cca24d9

Please sign in to comment.
Something went wrong with that request. Please try again.