data type fix on format string
This commit is contained in:
parent
a406ec30df
commit
1426a99cc0
1 changed files with 2 additions and 2 deletions
|
@ -170,7 +170,7 @@ def daemonize_self(module, password, port, minutes, pid_file):
|
|||
module.exit_json(msg="daemonized accelerate on port %s for %s minutes with pid %s" % (port, minutes, str(pid)))
|
||||
except OSError:
|
||||
e = get_exception()
|
||||
message = "fork #1 failed: %s (%s)" % (e.errno, e.strerror)
|
||||
message = "fork #1 failed: %d (%s)" % (e.errno, e.strerror)
|
||||
module.fail_json(message)
|
||||
|
||||
# decouple from parent environment
|
||||
|
@ -190,7 +190,7 @@ def daemonize_self(module, password, port, minutes, pid_file):
|
|||
sys.exit(0)
|
||||
except OSError:
|
||||
e = get_exception()
|
||||
message = 'fork #2 failed: %s (%s)' % (e.errno, e.strerror)
|
||||
message = 'fork #2 failed: %d (%s)' % (e.errno, e.strerror)
|
||||
module.fail_json(message)
|
||||
|
||||
dev_null = file('/dev/null','rw')
|
||||
|
|
Loading…
Reference in a new issue