Skip to content

Commit

Permalink
Fixing wrong spacing in log message.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonDel committed Nov 17, 2016
1 parent b12e58d commit d646f6b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Executing a list of commands in multiple servers in parallel
>>> from remote_multicommand import RemoteMultiCommand
>>> cmds_list = ['hostname','whoami']
>>> num_of_process = 4
>>> rm_cmd = RemoteMultiCommand('/tmp/sshkey')
Log: Changing log level to ERROR | Log level:ERROR | Date:01/11/2016 16:40:10
>>> rm_cmd.set_log_level('DEBUG')
Expand Down
4 changes: 2 additions & 2 deletions remote_multicommand/remote_multicommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,6 @@ def launch_list_of_commands(self, script_cmds, num_of_process, servers_list,
log_message = log_message+'\n - Number of commands bypassed: '\
+str(len(cmds_list) - len(result_dict))
self.log.info(log_message)
self.log.info("It took "+str(round(time.time()-start, 3))+" seconds to execute the list \
of commands in all "+str(num_of_servers)+" servers.")
self.log.info("It took "+str(round(time.time()-start, 3))+" seconds to execute the list"\
" of commands in all "+str(num_of_servers)+" servers.")
return self.servers_cmd_dict

0 comments on commit d646f6b

Please sign in to comment.